PreviewingGo to this paletteOpen in generator
Code
/* Graphite Gray — colorset.net */
:root {
--color-1: #2E2E2E;
--color-2: #424242;
--color-3: #616161;
--color-4: #757575;
--color-5: #9E9E9E;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #2E2E2E;
--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: #0F0F0F;
--color-surface: #191919;
--color-border: #302D2E;
--color-text: #A4A4A4;
--color-muted: #838383;
--color-primary: #757575;
--color-on-primary: #FFFFFF;
--color-accent: #A8A8A8;
--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 #9E9E9E | adjusted for contrast · from #2E2E2E |
| 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 | adjusted for contrast · from #9E9E9E |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.68:1 | AAA pass 4.5:1 | |
| Text on surface | 11.60: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 | 7.69:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 4.61:1 | AA pass 4.5:1 | |
| Label on accent | 8.06:1 | AAA pass 4.5:1 | |
| Primary on background | 4.16:1 | AA Large pass 3:1 | |
| Accent on background | 8.06: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 | #2E2E2E (Text 1) | #424242 (Text 2) | #616161 (Text 3) | #757575 (Text 4) | #9E9E9E (Text 5) |
|---|---|---|---|---|---|
| #2E2E2E | Same color | 1.35— | 2.19— | 2.95— | 5.07AA |
| #424242 | 1.35— | Same color | 1.62— | 2.18— | 3.75AA Large |
| #616161 | 2.19— | 1.62— | Same color | 1.34— | 2.31— |
| #757575 | 2.95— | 2.18— | 1.34— | Same color | 1.72— |
| #9E9E9E | 5.07AA | 3.75AA Large | 2.31— | 1.72— | Same color |
Shades
Shades and tints (50–950)
