PreviewingGo to this paletteOpen in generator
Code
/* Onyx Deep — colorset.net */
:root {
--color-1: #0D0D0D;
--color-2: #1A1A1A;
--color-3: #262626;
--color-4: #333333;
--color-5: #404040;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #0D0D0D;
--color-muted: #646464;
--color-primary: #404040;
--color-on-primary: #FFFFFF;
--color-accent: #1A1A1A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D0D0D;
--color-surface: #171717;
--color-border: #2D2A2B;
--color-text: #A2A2A2;
--color-muted: #808080;
--color-primary: #646464;
--color-on-primary: #FFFFFF;
--color-accent: #969696;
--color-on-accent: #0D0D0D;
}
}
Color values
| Color | HEX | RGB | HSL | OKLCH |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 |
Roles & contrast
Original colors are kept; roles are adjusted only when needed for contrast.
| Role | Light mode | Dark mode |
|---|---|---|
| Background | adjusted for contrast · from #404040 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #404040 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #404040 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #404040 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.14:1 | AAA pass 4.5:1 | |
| Text on surface | 16.60:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.52:1 | AA pass 4.5:1 | |
| Label on primary | 10.37:1 | AAA pass 4.5:1 | |
| Label on accent | 17.40:1 | AAA pass 4.5:1 | |
| Primary on background | 9.68:1 | AAA pass 3:1 | |
| Accent on background | 16.25:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.61:1 | AAA pass 4.5:1 | |
| Text on surface | 7.02:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 5.92:1 | AA pass 4.5:1 | |
| Label on accent | 6.57:1 | AA pass 4.5:1 | |
| Primary on background | 3.28:1 | AA Large pass 3:1 | |
| Accent on background | 6.57:1 | AA pass 3:1 |
Every color on every color
Rows are backgrounds and columns are text colors, using the actual palette colors. Ratios: AAA 7:1, AA 4.5:1, AA large text 3:1.
| Background / Text | #0D0D0D (Text 1) | #1A1A1A (Text 2) | #262626 (Text 3) | #333333 (Text 4) | #404040 (Text 5) |
|---|---|---|---|---|---|
| #0D0D0D | Same color | 1.12— | 1.28— | 1.54— | 1.87— |
| #1A1A1A | 1.12— | Same color | 1.15— | 1.38— | 1.68— |
| #262626 | 1.28— | 1.15— | Same color | 1.20— | 1.46— |
| #333333 | 1.54— | 1.38— | 1.20— | Same color | 1.22— |
| #404040 | 1.87— | 1.68— | 1.46— | 1.22— | Same color |
Shades
Shades and tints (50–950)
