PreviewingGo to this paletteOpen in generator
Code
/* Onyx Dark — colorset.net */
:root {
--color-1: #0F0F0F;
--color-2: #1C1C1C;
--color-3: #2E2E2E;
--color-4: #353839;
--color-5: #454545;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #0F0F0F;
--color-muted: #656565;
--color-primary: #454545;
--color-on-primary: #FFFFFF;
--color-accent: #1C1C1C;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #302C2D;
--color-text: #A5A5A5;
--color-muted: #838383;
--color-primary: #666666;
--color-on-primary: #FFFFFF;
--color-accent: #989898;
--color-on-accent: #0F0F0F;
}
}
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 #454545 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #454545 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #454545 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #454545 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.89:1 | AAA pass 4.5:1 | |
| Text on surface | 16.37:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.44:1 | AA pass 4.5:1 | |
| Label on primary | 9.59:1 | AAA pass 4.5:1 | |
| Label on accent | 17.04:1 | AAA pass 4.5:1 | |
| Primary on background | 8.95:1 | AAA pass 3:1 | |
| Accent on background | 15.91:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.78:1 | AAA pass 4.5:1 | |
| Text on surface | 7.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 5.74:1 | AA pass 4.5:1 | |
| Label on accent | 6.64:1 | AA pass 4.5:1 | |
| Primary on background | 3.34:1 | AA Large pass 3:1 | |
| Accent on background | 6.64: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 | #0F0F0F (Text 1) | #1C1C1C (Text 2) | #2E2E2E (Text 3) | #353839 (Text 4) | #454545 (Text 5) |
|---|---|---|---|---|---|
| #0F0F0F | Same color | 1.12— | 1.41— | 1.62— | 2.00— |
| #1C1C1C | 1.12— | Same color | 1.25— | 1.44— | 1.78— |
| #2E2E2E | 1.41— | 1.25— | Same color | 1.15— | 1.42— |
| #353839 | 1.62— | 1.44— | 1.15— | Same color | 1.23— |
| #454545 | 2.00— | 1.78— | 1.42— | 1.23— | Same color |
Shades
Shades and tints (50–950)
