PreviewingGo to this paletteOpen in generator
Code
/* Charcoal Black — colorset.net */
:root {
--color-1: #0A0A0A;
--color-2: #1A1A1A;
--color-3: #2A2A2A;
--color-4: #3A3A3A;
--color-5: #4A4A4A;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #0A0A0A;
--color-muted: #616161;
--color-primary: #4A4A4A;
--color-on-primary: #FFFFFF;
--color-accent: #1A1A1A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A0A0A;
--color-surface: #141414;
--color-border: #2A2727;
--color-text: #A1A1A1;
--color-muted: #7E7E7E;
--color-primary: #636363;
--color-on-primary: #FFFFFF;
--color-accent: #959595;
--color-on-accent: #0A0A0A;
}
}
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 #4A4A4A | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #4A4A4A |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #4A4A4A |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #4A4A4A |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.48:1 | AAA pass 4.5:1 | |
| Text on surface | 16.91:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.78:1 | AA pass 4.5:1 | |
| Label on primary | 8.86:1 | AAA pass 4.5:1 | |
| Label on accent | 17.40:1 | AAA pass 4.5:1 | |
| Primary on background | 8.27:1 | AAA pass 3:1 | |
| Accent on background | 16.25:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.66:1 | AAA pass 4.5:1 | |
| Text on surface | 7.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.88:1 | AA pass 4.5:1 | |
| Label on primary | 6.01:1 | AA pass 4.5:1 | |
| Label on accent | 6.61:1 | AA pass 4.5:1 | |
| Primary on background | 3.30:1 | AA Large pass 3:1 | |
| Accent on background | 6.61: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 | #0A0A0A (Text 1) | #1A1A1A (Text 2) | #2A2A2A (Text 3) | #3A3A3A (Text 4) | #4A4A4A (Text 5) |
|---|---|---|---|---|---|
| #0A0A0A | Same color | 1.14— | 1.38— | 1.74— | 2.23— |
| #1A1A1A | 1.14— | Same color | 1.21— | 1.53— | 1.96— |
| #2A2A2A | 1.38— | 1.21— | Same color | 1.26— | 1.62— |
| #3A3A3A | 1.74— | 1.53— | 1.26— | Same color | 1.28— |
| #4A4A4A | 2.23— | 1.96— | 1.62— | 1.28— | Same color |
Shades
Shades and tints (50–950)
