PreviewingGo to this paletteOpen in generator
Code
/* Charcoal Night — colorset.net */
:root {
--color-1: #000000;
--color-2: #121212;
--color-3: #1E1E1E;
--color-4: #2E2E2E;
--color-5: #424242;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #000000;
--color-muted: #4A4A4A;
--color-primary: #424242;
--color-on-primary: #FFFFFF;
--color-accent: #121212;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #000000;
--color-surface: #000000;
--color-border: #090707;
--color-text: #959595;
--color-muted: #777777;
--color-primary: #5A5A5A;
--color-on-primary: #FFFFFF;
--color-accent: #8B8B8B;
--color-on-accent: #000000;
}
}
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 #424242 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #424242 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #424242 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #424242 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.60:1 | AAA pass 4.5:1 | |
| Text on surface | 17.94:1 | AAA pass 4.5:1 | |
| Muted text on background | 8.27:1 | AAA pass 4.5:1 | |
| Label on primary | 10.05:1 | AAA pass 4.5:1 | |
| Label on accent | 18.73:1 | AAA pass 4.5:1 | |
| Primary on background | 9.38:1 | AAA pass 3:1 | |
| Accent on background | 17.49:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.01:1 | AAA pass 4.5:1 | |
| Text on surface | 7.01:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.69:1 | AA pass 4.5:1 | |
| Label on primary | 6.90:1 | AA pass 4.5:1 | |
| Label on accent | 6.16:1 | AA pass 4.5:1 | |
| Primary on background | 3.04:1 | AA Large pass 3:1 | |
| Accent on background | 6.16: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 | #000000 (Text 1) | #121212 (Text 2) | #1E1E1E (Text 3) | #2E2E2E (Text 4) | #424242 (Text 5) |
|---|---|---|---|---|---|
| #000000 | Same color | 1.12— | 1.26— | 1.55— | 2.09— |
| #121212 | 1.12— | Same color | 1.12— | 1.38— | 1.86— |
| #1E1E1E | 1.26— | 1.12— | Same color | 1.23— | 1.66— |
| #2E2E2E | 1.55— | 1.38— | 1.23— | Same color | 1.35— |
| #424242 | 2.09— | 1.86— | 1.66— | 1.35— | Same color |
Shades
Shades and tints (50–950)
