PreviewingGo to this paletteOpen in generator
Code
/* Charred Graphite — colorset.net */
:root {
--color-1: #1C1C1C;
--color-2: #2E2E2E;
--color-3: #404040;
--color-4: #525252;
--color-5: #646464;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #1C1C1C;
--color-muted: #696969;
--color-primary: #646464;
--color-on-primary: #FFFFFF;
--color-accent: #2E2E2E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C1C1C;
--color-surface: #272727;
--color-border: #3F3B3C;
--color-text: #B2B2B2;
--color-muted: #8E8E8E;
--color-primary: #727272;
--color-on-primary: #FFFFFF;
--color-accent: #A5A5A5;
--color-on-accent: #1C1C1C;
}
}
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 #646464 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #646464 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #646464 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #646464 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.91:1 | AAA pass 4.5:1 | |
| Text on surface | 14.56:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.12:1 | AA pass 4.5:1 | |
| Label on primary | 5.92:1 | AA pass 4.5:1 | |
| Label on accent | 13.58:1 | AAA pass 4.5:1 | |
| Primary on background | 5.52:1 | AA pass 3:1 | |
| Accent on background | 12.68:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.04:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.20:1 | AA pass 4.5:1 | |
| Label on primary | 4.81:1 | AA pass 4.5:1 | |
| Label on accent | 6.92:1 | AA pass 4.5:1 | |
| Primary on background | 3.54:1 | AA Large pass 3:1 | |
| Accent on background | 6.92: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 | #1C1C1C (Text 1) | #2E2E2E (Text 2) | #404040 (Text 3) | #525252 (Text 4) | #646464 (Text 5) |
|---|---|---|---|---|---|
| #1C1C1C | Same color | 1.25— | 1.64— | 2.18— | 2.88— |
| #2E2E2E | 1.25— | Same color | 1.31— | 1.74— | 2.29— |
| #404040 | 1.64— | 1.31— | Same color | 1.33— | 1.75— |
| #525252 | 2.18— | 1.74— | 1.33— | Same color | 1.32— |
| #646464 | 2.88— | 2.29— | 1.75— | 1.32— | Same color |
Shades
Shades and tints (50–950)
