PreviewingGo to this paletteOpen in generator
Code
/* Charcoal Deep — colorset.net */
:root {
--color-1: #2F2F2F;
--color-2: #4A4A4A;
--color-3: #696969;
--color-4: #A9A9A9;
--color-5: #DCDCDC;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #2F2F2F;
--color-muted: #6B6B6B;
--color-primary: #696969;
--color-on-primary: #FFFFFF;
--color-accent: #878787;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #302D2E;
--color-text: #DCDCDC;
--color-muted: #838383;
--color-primary: #696969;
--color-on-primary: #FFFFFF;
--color-accent: #A9A9A9;
--color-on-accent: #0F0F0F;
}
}
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 #DCDCDC | adjusted for contrast · from #2F2F2F |
| 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 #696969 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.50:1 | AAA pass 4.5:1 | |
| Text on surface | 11.44:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 5.49:1 | AA pass 4.5:1 | |
| Label on accent | 5.85:1 | AA pass 4.5:1 | |
| Primary on background | 5.12:1 | AA pass 3:1 | |
| Accent on background | 3.35:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.98:1 | AAA pass 4.5:1 | |
| Text on surface | 12.82:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 5.49:1 | AA pass 4.5:1 | |
| Label on accent | 8.16:1 | AAA pass 4.5:1 | |
| Primary on background | 3.49:1 | AA Large pass 3:1 | |
| Accent on background | 8.16: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 | #2F2F2F (Text 1) | #4A4A4A (Text 2) | #696969 (Text 3) | #A9A9A9 (Text 4) | #DCDCDC (Text 5) |
|---|---|---|---|---|---|
| #2F2F2F | Same color | 1.51— | 2.44— | 5.70AA | 9.76AAA |
| #4A4A4A | 1.51— | Same color | 1.61— | 3.77AA Large | 6.46AA |
| #696969 | 2.44— | 1.61— | Same color | 2.34— | 4.00AA Large |
| #A9A9A9 | 5.70AA | 3.77AA Large | 2.34— | Same color | 1.71— |
| #DCDCDC | 9.76AAA | 6.46AA | 4.00AA Large | 1.71— | Same color |
Shades
Shades and tints (50–950)
