PreviewingGo to this paletteOpen in generator
Code
/* Coal Black — colorset.net */
:root {
--color-1: #0E0E0E;
--color-2: #1C1C1C;
--color-3: #2A2A2A;
--color-4: #383838;
--color-5: #464646;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #0E0E0E;
--color-muted: #646464;
--color-primary: #464646;
--color-on-primary: #FFFFFF;
--color-accent: #1C1C1C;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E0E0E;
--color-surface: #181818;
--color-border: #2F2B2C;
--color-text: #A3A3A3;
--color-muted: #818181;
--color-primary: #646464;
--color-on-primary: #FFFFFF;
--color-accent: #969696;
--color-on-accent: #0E0E0E;
}
}
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 #464646 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #464646 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #464646 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #464646 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.02:1 | AAA pass 4.5:1 | |
| Text on surface | 16.49:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.52:1 | AA pass 4.5:1 | |
| Label on primary | 9.44:1 | AAA pass 4.5:1 | |
| Label on accent | 17.04:1 | AAA pass 4.5:1 | |
| Primary on background | 8.81:1 | AAA pass 3:1 | |
| Accent on background | 15.91:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.65:1 | AAA pass 4.5:1 | |
| Text on surface | 7.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 5.92:1 | AA pass 4.5:1 | |
| Label on accent | 6.53:1 | AA pass 4.5:1 | |
| Primary on background | 3.26:1 | AA Large pass 3:1 | |
| Accent on background | 6.53: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 | #0E0E0E (Text 1) | #1C1C1C (Text 2) | #2A2A2A (Text 3) | #383838 (Text 4) | #464646 (Text 5) |
|---|---|---|---|---|---|
| #0E0E0E | Same color | 1.13— | 1.34— | 1.65— | 2.05— |
| #1C1C1C | 1.13— | Same color | 1.19— | 1.45— | 1.81— |
| #2A2A2A | 1.34— | 1.19— | Same color | 1.22— | 1.52— |
| #383838 | 1.65— | 1.45— | 1.22— | Same color | 1.24— |
| #464646 | 2.05— | 1.81— | 1.52— | 1.24— | Same color |
Shades
Shades and tints (50–950)
