PreviewingGo to this paletteOpen in generator
Code
/* Ebony Piano — colorset.net */
:root {
--color-1: #0D0D0D;
--color-2: #1F1F1F;
--color-3: #313131;
--color-4: #434343;
--color-5: #555555;
--color-bg: #F7F7F7;
--color-surface: #EDEDED;
--color-border: #D8D3D5;
--color-text: #0D0D0D;
--color-muted: #646464;
--color-primary: #555555;
--color-on-primary: #FFFFFF;
--color-accent: #1F1F1F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D0D0D;
--color-surface: #171717;
--color-border: #2D2A2B;
--color-text: #A4A4A4;
--color-muted: #818181;
--color-primary: #666666;
--color-on-primary: #FFFFFF;
--color-accent: #989898;
--color-on-accent: #0D0D0D;
}
}
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.14:1 | AAA pass 4.5:1 | |
| Text on surface | 16.60:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.52:1 | AA pass 4.5:1 | |
| Label on primary | 7.46:1 | AAA pass 4.5:1 | |
| Label on accent | 16.48:1 | AAA pass 4.5:1 | |
| Primary on background | 6.96:1 | AA pass 3:1 | |
| Accent on background | 15.39:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.80:1 | AAA pass 4.5:1 | |
| Text on surface | 7.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.74:1 | AA pass 4.5:1 | |
| Label on accent | 6.74:1 | AA pass 4.5:1 | |
| Primary on background | 3.38:1 | AA Large pass 3:1 | |
| Accent on background | 6.74: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 | #0D0D0D (Text 1) | #1F1F1F (Text 2) | #313131 (Text 3) | #434343 (Text 4) | #555555 (Text 5) |
|---|---|---|---|---|---|
| #0D0D0D | Same color | 1.18— | 1.49— | 1.96— | 2.61— |
| #1F1F1F | 1.18— | Same color | 1.27— | 1.67— | 2.21— |
| #313131 | 1.49— | 1.27— | Same color | 1.31— | 1.74— |
| #434343 | 1.96— | 1.67— | 1.31— | Same color | 1.33— |
| #555555 | 2.61— | 2.21— | 1.74— | 1.33— | Same color |
Shades
Shades and tints (50–950)
