PreviewingGo to this paletteOpen in generator
Code
/* Ebony Night — colorset.net */
:root {
--color-1: #0C0C0C;
--color-2: #1A1A1A;
--color-3: #2B2B2B;
--color-4: #3D3D3D;
--color-5: #555555;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #0C0C0C;
--color-muted: #636363;
--color-primary: #555555;
--color-on-primary: #FFFFFF;
--color-accent: #1A1A1A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0C0C0C;
--color-surface: #161616;
--color-border: #2C292A;
--color-text: #A1A1A1;
--color-muted: #7F7F7F;
--color-primary: #636363;
--color-on-primary: #FFFFFF;
--color-accent: #959595;
--color-on-accent: #0C0C0C;
}
}
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 #555555 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #555555 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #555555 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #555555 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.26:1 | AAA pass 4.5:1 | |
| Text on surface | 16.71:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.61:1 | AA pass 4.5:1 | |
| Label on primary | 7.46:1 | AAA pass 4.5:1 | |
| Label on accent | 17.40:1 | AAA pass 4.5:1 | |
| Primary on background | 6.96:1 | AA pass 3:1 | |
| Accent on background | 16.25:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.57:1 | AAA pass 4.5:1 | |
| Text on surface | 7.00:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.89:1 | AA pass 4.5:1 | |
| Label on primary | 6.01:1 | AA pass 4.5:1 | |
| Label on accent | 6.53:1 | AA pass 4.5:1 | |
| Primary on background | 3.26:1 | AA Large pass 3:1 | |
| Accent on background | 6.53: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 | #0C0C0C (Text 1) | #1A1A1A (Text 2) | #2B2B2B (Text 3) | #3D3D3D (Text 4) | #555555 (Text 5) |
|---|---|---|---|---|---|
| #0C0C0C | Same color | 1.12— | 1.38— | 1.80— | 2.62— |
| #1A1A1A | 1.12— | Same color | 1.23— | 1.60— | 2.33— |
| #2B2B2B | 1.38— | 1.23— | Same color | 1.30— | 1.90— |
| #3D3D3D | 1.80— | 1.60— | 1.30— | Same color | 1.46— |
| #555555 | 2.62— | 2.33— | 1.90— | 1.46— | Same color |
Shades
Shades and tints (50–950)
