PreviewingGo to this paletteOpen in generator
Code
/* Charcoal Graphite — colorset.net */
:root {
--color-1: #616161;
--color-2: #424242;
--color-3: #212121;
--color-4: #000000;
--color-5: #37474F;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #000000;
--color-muted: #4A4A4A;
--color-primary: #616161;
--color-on-primary: #FFFFFF;
--color-accent: #212121;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #000000;
--color-surface: #000000;
--color-border: #090707;
--color-text: #969696;
--color-muted: #777777;
--color-primary: #616161;
--color-on-primary: #FFFFFF;
--color-accent: #939393;
--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 #616161 | from palette · color 4 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 4 | adjusted for contrast · from #616161 |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #616161 |
| 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 | 6.19:1 | AA pass 4.5:1 | |
| Label on accent | 16.10:1 | AAA pass 4.5:1 | |
| Primary on background | 5.78:1 | AA pass 3:1 | |
| Accent on background | 15.03:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.10:1 | AAA pass 4.5:1 | |
| Text on surface | 7.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.69:1 | AA pass 4.5:1 | |
| Label on primary | 6.19:1 | AA pass 4.5:1 | |
| Label on accent | 6.84:1 | AA pass 4.5:1 | |
| Primary on background | 3.39:1 | AA Large pass 3:1 | |
| Accent on background | 6.84: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 | #616161 (Text 1) | #424242 (Text 2) | #212121 (Text 3) | #000000 (Text 4) | #37474F (Text 5) |
|---|---|---|---|---|---|
| #616161 | Same color | 1.62— | 2.60— | 3.39AA Large | 1.56— |
| #424242 | 1.62— | Same color | 1.60— | 2.09— | 1.04— |
| #212121 | 2.60— | 1.60— | Same color | 1.30— | 1.67— |
| #000000 | 3.39AA Large | 2.09— | 1.30— | Same color | 2.18— |
| #37474F | 1.56— | 1.04— | 1.67— | 2.18— | Same color |
Shades
Shades and tints (50–950)
