PreviewingGo to this paletteOpen in generator
Code
/* Espresso Black — colorset.net */
:root {
--color-1: #2C1810;
--color-2: #3E2415;
--color-3: #4A2C1F;
--color-4: #5C3A28;
--color-5: #704214;
--color-bg: #FFF5ED;
--color-surface: #F8EBE0;
--color-border: #E2D2C5;
--color-text: #2C1810;
--color-muted: #7D645A;
--color-primary: #704214;
--color-on-primary: #FFFFFF;
--color-accent: #3E2415;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #2C1810;
--color-surface: #38231A;
--color-border: #50372D;
--color-text: #CEAF96;
--color-muted: #A48D79;
--color-primary: #98673B;
--color-on-primary: #FFFFFF;
--color-accent: #C99C77;
--color-on-accent: #2C1810;
}
}
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 #704214 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #704214 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #704214 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #704214 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.69:1 | AAA pass 4.5:1 | |
| Text on surface | 14.42:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 8.47:1 | AAA pass 4.5:1 | |
| Label on accent | 14.31:1 | AAA pass 4.5:1 | |
| Primary on background | 7.88:1 | AAA pass 3:1 | |
| Accent on background | 13.31:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.19:1 | AAA pass 4.5:1 | |
| Text on surface | 7.16:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.35:1 | AA pass 4.5:1 | |
| Label on primary | 4.84:1 | AA pass 4.5:1 | |
| Label on accent | 6.83:1 | AA pass 4.5:1 | |
| Primary on background | 3.48:1 | AA Large pass 3:1 | |
| Accent on background | 6.83: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 | #2C1810 (Text 1) | #3E2415 (Text 2) | #4A2C1F (Text 3) | #5C3A28 (Text 4) | #704214 (Text 5) |
|---|---|---|---|---|---|
| #2C1810 | Same color | 1.18— | 1.34— | 1.68— | 1.99— |
| #3E2415 | 1.18— | Same color | 1.14— | 1.42— | 1.69— |
| #4A2C1F | 1.34— | 1.14— | Same color | 1.25— | 1.48— |
| #5C3A28 | 1.68— | 1.42— | 1.25— | Same color | 1.19— |
| #704214 | 1.99— | 1.69— | 1.48— | 1.19— | Same color |
Shades
Shades and tints (50–950)
