PreviewingGo to this paletteOpen in generator
Code
/* Onyx Black — colorset.net */
:root {
--color-1: #1C1C1C;
--color-2: #2F2F2F;
--color-3: #454545;
--color-4: #5C5C5C;
--color-5: #737373;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #1C1C1C;
--color-muted: #696969;
--color-primary: #737373;
--color-on-primary: #FFFFFF;
--color-accent: #2F2F2F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C1C1C;
--color-surface: #272727;
--color-border: #3F3B3C;
--color-text: #B3B3B3;
--color-muted: #8F8F8F;
--color-primary: #737373;
--color-on-primary: #FFFFFF;
--color-accent: #A6A6A6;
--color-on-accent: #1C1C1C;
}
}
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 #737373 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #737373 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #737373 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.91:1 | AAA pass 4.5:1 | |
| Text on surface | 14.56:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.12:1 | AA pass 4.5:1 | |
| Label on primary | 4.74:1 | AA pass 4.5:1 | |
| Label on accent | 13.39:1 | AAA pass 4.5:1 | |
| Primary on background | 4.43:1 | AA Large pass 3:1 | |
| Accent on background | 12.50:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.13:1 | AAA pass 4.5:1 | |
| Text on surface | 7.12:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.27:1 | AA pass 4.5:1 | |
| Label on primary | 4.74:1 | AA pass 4.5:1 | |
| Label on accent | 7.00:1 | AAA pass 4.5:1 | |
| Primary on background | 3.59:1 | AA Large pass 3:1 | |
| Accent on background | 7.00:1 | AAA 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 | #1C1C1C (Text 1) | #2F2F2F (Text 2) | #454545 (Text 3) | #5C5C5C (Text 4) | #737373 (Text 5) |
|---|---|---|---|---|---|
| #1C1C1C | Same color | 1.27— | 1.78— | 2.55— | 3.59AA Large |
| #2F2F2F | 1.27— | Same color | 1.40— | 2.00— | 2.82— |
| #454545 | 1.78— | 1.40— | Same color | 1.43— | 2.02— |
| #5C5C5C | 2.55— | 2.00— | 1.43— | Same color | 1.41— |
| #737373 | 3.59AA Large | 2.82— | 2.02— | 1.41— | Same color |
Shades
Shades and tints (50–950)
