PreviewingGo to this paletteOpen in generator
Code
/* Graphite Scale — colorset.net */
:root {
--color-1: #212121;
--color-2: #424242;
--color-3: #616161;
--color-4: #757575;
--color-5: #9E9E9E;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #212121;
--color-muted: #6A6A6A;
--color-primary: #757575;
--color-on-primary: #FFFFFF;
--color-accent: #424242;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #212121;
--color-surface: #2C2C2C;
--color-border: #444142;
--color-text: #BABABA;
--color-muted: #939393;
--color-primary: #757575;
--color-on-primary: #FFFFFF;
--color-accent: #9E9E9E;
--color-on-accent: #212121;
}
}
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 #9E9E9E | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #9E9E9E |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.03:1 | AAA pass 4.5:1 | |
| Text on surface | 13.75:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.61:1 | AA pass 4.5:1 | |
| Label on accent | 10.05:1 | AAA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 9.38:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.30:1 | AAA pass 4.5:1 | |
| Text on surface | 7.20:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.24:1 | AA pass 4.5:1 | |
| Label on primary | 4.61:1 | AA pass 4.5:1 | |
| Label on accent | 6.01:1 | AA pass 4.5:1 | |
| Primary on background | 3.49:1 | AA Large pass 3:1 | |
| Accent on background | 6.01: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 | #212121 (Text 1) | #424242 (Text 2) | #616161 (Text 3) | #757575 (Text 4) | #9E9E9E (Text 5) |
|---|---|---|---|---|---|
| #212121 | Same color | 1.60— | 2.60— | 3.49AA Large | 6.01AA |
| #424242 | 1.60— | Same color | 1.62— | 2.18— | 3.75AA Large |
| #616161 | 2.60— | 1.62— | Same color | 1.34— | 2.31— |
| #757575 | 3.49AA Large | 2.18— | 1.34— | Same color | 1.72— |
| #9E9E9E | 6.01AA | 3.75AA Large | 2.31— | 1.72— | Same color |
Shades
Shades and tints (50–950)
