PreviewingGo to this paletteOpen in generator
Code
/* Ebony Coal — colorset.net */
:root {
--color-1: #080808;
--color-2: #101010;
--color-3: #1C1C1C;
--color-4: #2C2C2C;
--color-5: #3D3D3D;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #080808;
--color-muted: #606060;
--color-primary: #3D3D3D;
--color-on-primary: #FFFFFF;
--color-accent: #1C1C1C;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080808;
--color-surface: #111111;
--color-border: #272425;
--color-text: #9E9E9E;
--color-muted: #7E7E7E;
--color-primary: #606060;
--color-on-primary: #FFFFFF;
--color-accent: #929292;
--color-on-accent: #080808;
}
}
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 #3D3D3D | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #3D3D3D |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #3D3D3D |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #3D3D3D |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.69:1 | AAA pass 4.5:1 | |
| Text on surface | 17.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.87:1 | AA pass 4.5:1 | |
| Label on primary | 10.86:1 | AAA pass 4.5:1 | |
| Label on accent | 17.04:1 | AAA pass 4.5:1 | |
| Primary on background | 10.14:1 | AAA pass 3:1 | |
| Accent on background | 15.91:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.48:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 6.29:1 | AA pass 4.5:1 | |
| Label on accent | 6.44:1 | AA pass 4.5:1 | |
| Primary on background | 3.18:1 | AA Large pass 3:1 | |
| Accent on background | 6.44: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 | #080808 (Text 1) | #101010 (Text 2) | #1C1C1C (Text 3) | #2C2C2C (Text 4) | #3D3D3D (Text 5) |
|---|---|---|---|---|---|
| #080808 | Same color | 1.05— | 1.18— | 1.43— | 1.84— |
| #101010 | 1.05— | Same color | 1.12— | 1.36— | 1.75— |
| #1C1C1C | 1.18— | 1.12— | Same color | 1.22— | 1.57— |
| #2C2C2C | 1.43— | 1.36— | 1.22— | Same color | 1.29— |
| #3D3D3D | 1.84— | 1.75— | 1.57— | 1.29— | Same color |
Shades
Shades and tints (50–950)
