PreviewingGo to this paletteOpen in generator
Code
/* Charcoal Grey — colorset.net */
:root {
--color-1: #696969;
--color-2: #708090;
--color-3: #778899;
--color-4: #2F4F4F;
--color-5: #1C1C1C;
--color-bg: #F2F7FD;
--color-surface: #E9EEF4;
--color-border: #CED6DE;
--color-text: #1C1C1C;
--color-muted: #6C6C6C;
--color-primary: #708090;
--color-on-primary: #000000;
--color-accent: #2F4F4F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C1C1C;
--color-surface: #272727;
--color-border: #3F3B3C;
--color-text: #A4B6C8;
--color-muted: #8092A3;
--color-primary: #708090;
--color-on-primary: #000000;
--color-accent: #A5B4C2;
--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 #778899 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | adjusted for contrast · from #778899 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | from palette · color 4 | adjusted for contrast · from #778899 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.82:1 | AAA pass 4.5:1 | |
| Text on surface | 14.61:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.88:1 | AA pass 4.5:1 | |
| Label on primary | 5.18:1 | AA pass 4.5:1 | |
| Label on accent | 8.93:1 | AAA pass 4.5:1 | |
| Primary on background | 3.76:1 | AA Large pass 3:1 | |
| Accent on background | 8.29:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.20:1 | AAA pass 4.5:1 | |
| Text on surface | 7.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.32:1 | AA pass 4.5:1 | |
| Label on primary | 5.18:1 | AA pass 4.5:1 | |
| Label on accent | 8.04:1 | AAA pass 4.5:1 | |
| Primary on background | 4.20:1 | AA Large pass 3:1 | |
| Accent on background | 8.04: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 | #696969 (Text 1) | #708090 (Text 2) | #778899 (Text 3) | #2F4F4F (Text 4) | #1C1C1C (Text 5) |
|---|---|---|---|---|---|
| #696969 | Same color | 1.35— | 1.51— | 1.63— | 3.10AA Large |
| #708090 | 1.35— | Same color | 1.11— | 2.20— | 4.20AA Large |
| #778899 | 1.51— | 1.11— | Same color | 2.45— | 4.68AA |
| #2F4F4F | 1.63— | 2.20— | 2.45— | Same color | 1.91— |
| #1C1C1C | 3.10AA Large | 4.20AA Large | 4.68AA | 1.91— | Same color |
Shades
Shades and tints (50–950)
