PreviewingGo to this paletteOpen in generator
Code
/* Graphite Dark — colorset.net */
:root {
--color-1: #2C2C2C;
--color-2: #4A4A4A;
--color-3: #686868;
--color-4: #868686;
--color-5: #A4A4A4;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #2C2C2C;
--color-muted: #6B6B6B;
--color-primary: #868686;
--color-on-primary: #000000;
--color-accent: #4A4A4A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F0F;
--color-surface: #191919;
--color-border: #302D2E;
--color-text: #A4A4A4;
--color-muted: #828282;
--color-primary: #868686;
--color-on-primary: #0F0F0F;
--color-accent: #676767;
--color-on-accent: #FFFFFF;
}
}
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 #A4A4A4 | adjusted for contrast · from #2C2C2C |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #686868 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.04:1 | AAA pass 4.5:1 | |
| Text on surface | 11.93:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 5.77:1 | AA pass 4.5:1 | |
| Label on accent | 8.86:1 | AAA pass 4.5:1 | |
| Primary on background | 3.40:1 | AA Large pass 3:1 | |
| Accent on background | 8.27:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.69:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.26:1 | AA pass 4.5:1 | |
| Label on accent | 5.66:1 | AA pass 4.5:1 | |
| Primary on background | 5.26:1 | AA pass 3:1 | |
| Accent on background | 3.39:1 | AA Large 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 | #2C2C2C (Text 1) | #4A4A4A (Text 2) | #686868 (Text 3) | #868686 (Text 4) | #A4A4A4 (Text 5) |
|---|---|---|---|---|---|
| #2C2C2C | Same color | 1.58— | 2.51— | 3.84AA Large | 5.60AA |
| #4A4A4A | 1.58— | Same color | 1.59— | 2.43— | 3.56AA Large |
| #686868 | 2.51— | 1.59— | Same color | 1.53— | 2.24— |
| #868686 | 3.84AA Large | 2.43— | 1.53— | Same color | 1.46— |
| #A4A4A4 | 5.60AA | 3.56AA Large | 2.24— | 1.46— | Same color |
Shades
Shades and tints (50–950)
