PreviewingGo to this paletteOpen in generator
Code
/* Charcoal Flint — colorset.net */
:root {
--color-1: #1C1C1C;
--color-2: #2C2C2C;
--color-3: #36454F;
--color-4: #4A5568;
--color-5: #5C6B7A;
--color-bg: #F2F7FD;
--color-surface: #E9EEF3;
--color-border: #CED6DE;
--color-text: #1C1C1C;
--color-muted: #696969;
--color-primary: #5C6B7A;
--color-on-primary: #FFFFFF;
--color-accent: #2C2C2C;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C1C1C;
--color-surface: #272727;
--color-border: #3F3B3C;
--color-text: #A6B7C7;
--color-muted: #7F8F9F;
--color-primary: #647483;
--color-on-primary: #FFFFFF;
--color-accent: #98A7B5;
--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 #5C6B7A | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #5C6B7A |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #5C6B7A |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #5C6B7A |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.82:1 | AAA pass 4.5:1 | |
| Text on surface | 14.60:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.10:1 | AA pass 4.5:1 | |
| Label on primary | 5.47:1 | AA pass 4.5:1 | |
| Label on accent | 13.97:1 | AAA pass 4.5:1 | |
| Primary on background | 5.08:1 | AA pass 3:1 | |
| Accent on background | 12.97:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.29:1 | AAA pass 4.5:1 | |
| Text on surface | 7.27:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.14: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) | #2C2C2C (Text 2) | #36454F (Text 3) | #4A5568 (Text 4) | #5C6B7A (Text 5) |
|---|---|---|---|---|---|
| #1C1C1C | Same color | 1.22— | 1.72— | 2.26— | 3.12AA Large |
| #2C2C2C | 1.22— | Same color | 1.41— | 1.86— | 2.55— |
| #36454F | 1.72— | 1.41— | Same color | 1.32— | 1.81— |
| #4A5568 | 2.26— | 1.86— | 1.32— | Same color | 1.38— |
| #5C6B7A | 3.12AA Large | 2.55— | 1.81— | 1.38— | Same color |
Shades
Shades and tints (50–950)
