PreviewingGo to this paletteOpen in generator
Code
/* Pure Black — colorset.net */
:root {
--color-1: #000000;
--color-2: #333333;
--color-3: #666666;
--color-4: #999999;
--color-5: #CCCCCC;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #000000;
--color-muted: #4A4A4A;
--color-primary: #666666;
--color-on-primary: #FFFFFF;
--color-accent: #888888;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #000000;
--color-surface: #000000;
--color-border: #090707;
--color-text: #CCCCCC;
--color-muted: #777777;
--color-primary: #666666;
--color-on-primary: #FFFFFF;
--color-accent: #999999;
--color-on-accent: #000000;
}
}
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 #CCCCCC | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #999999 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.60:1 | AAA pass 4.5:1 | |
| Text on surface | 17.94:1 | AAA pass 4.5:1 | |
| Muted text on background | 8.27:1 | AAA pass 4.5:1 | |
| Label on primary | 5.74:1 | AA pass 4.5:1 | |
| Label on accent | 5.92:1 | AA pass 4.5:1 | |
| Primary on background | 5.36:1 | AA pass 3:1 | |
| Accent on background | 3.31:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.08:1 | AAA pass 4.5:1 | |
| Text on surface | 13.08:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.69:1 | AA pass 4.5:1 | |
| Label on primary | 5.74:1 | AA pass 4.5:1 | |
| Label on accent | 7.37:1 | AAA pass 4.5:1 | |
| Primary on background | 3.66:1 | AA Large pass 3:1 | |
| Accent on background | 7.37: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 | #000000 (Text 1) | #333333 (Text 2) | #666666 (Text 3) | #999999 (Text 4) | #CCCCCC (Text 5) |
|---|---|---|---|---|---|
| #000000 | Same color | 1.66— | 3.66AA Large | 7.37AAA | 13.08AAA |
| #333333 | 1.66— | Same color | 2.20— | 4.43AA Large | 7.87AAA |
| #666666 | 3.66AA Large | 2.20— | Same color | 2.02— | 3.58AA Large |
| #999999 | 7.37AAA | 4.43AA Large | 2.02— | Same color | 1.77— |
| #CCCCCC | 13.08AAA | 7.87AAA | 3.58AA Large | 1.77— | Same color |
Shades
Shades and tints (50–950)
