PreviewingGo to this paletteOpen in generator
Code
/* Pitch Black — colorset.net */
:root {
--color-1: #000000;
--color-2: #0A0A0A;
--color-3: #141414;
--color-4: #1F1F1F;
--color-5: #2A2A2A;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #000000;
--color-muted: #4A4A4A;
--color-primary: #2A2A2A;
--color-on-primary: #FFFFFF;
--color-accent: #0A0A0A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #000000;
--color-surface: #000000;
--color-border: #090707;
--color-text: #979797;
--color-muted: #757575;
--color-primary: #5C5C5C;
--color-on-primary: #FFFFFF;
--color-accent: #8D8D8D;
--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 #2A2A2A | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #2A2A2A |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #2A2A2A |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #2A2A2A |
| 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 | 14.35:1 | AAA pass 4.5:1 | |
| Label on accent | 19.80:1 | AAA pass 4.5:1 | |
| Primary on background | 13.40:1 | AAA pass 3:1 | |
| Accent on background | 18.48:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.19:1 | AAA pass 4.5:1 | |
| Text on surface | 7.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.56:1 | AA pass 4.5:1 | |
| Label on primary | 6.69:1 | AA pass 4.5:1 | |
| Label on accent | 6.33:1 | AA pass 4.5:1 | |
| Primary on background | 3.14:1 | AA Large pass 3:1 | |
| Accent on background | 6.33: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 | #000000 (Text 1) | #0A0A0A (Text 2) | #141414 (Text 3) | #1F1F1F (Text 4) | #2A2A2A (Text 5) |
|---|---|---|---|---|---|
| #000000 | Same color | 1.06— | 1.14— | 1.27— | 1.46— |
| #0A0A0A | 1.06— | Same color | 1.07— | 1.20— | 1.38— |
| #141414 | 1.14— | 1.07— | Same color | 1.12— | 1.28— |
| #1F1F1F | 1.27— | 1.20— | 1.12— | Same color | 1.15— |
| #2A2A2A | 1.46— | 1.38— | 1.28— | 1.15— | Same color |
Shades
Shades and tints (50–950)
