PreviewingGo to this paletteOpen in generator
Code
/* Espresso Dark — colorset.net */
:root {
--color-1: #3C2415;
--color-2: #4A2C2A;
--color-3: #6F4E37;
--color-4: #8B4513;
--color-5: #A0522D;
--color-bg: #FFF4F0;
--color-surface: #FAEAE3;
--color-border: #E4D0C8;
--color-text: #3C2415;
--color-muted: #7E6556;
--color-primary: #A0522D;
--color-on-primary: #FFFFFF;
--color-accent: #6F4E37;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160D08;
--color-surface: #201712;
--color-border: #372B23;
--color-text: #C29D8D;
--color-muted: #997D71;
--color-primary: #A0522D;
--color-on-primary: #FFFFFF;
--color-accent: #7D6151;
--color-on-accent: #FFFFFF;
}
}
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 #A0522D | adjusted for contrast · from #3C2415 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #A0522D |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #6F4E37 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.37:1 | AAA pass 4.5:1 | |
| Text on surface | 12.33:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 5.62:1 | AA pass 4.5:1 | |
| Label on accent | 7.44:1 | AAA pass 4.5:1 | |
| Primary on background | 5.20:1 | AA pass 3:1 | |
| Accent on background | 6.90:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.76:1 | AAA pass 4.5:1 | |
| Text on surface | 7.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 5.62:1 | AA pass 4.5:1 | |
| Label on accent | 5.67:1 | AA pass 4.5:1 | |
| Primary on background | 3.41:1 | AA Large pass 3:1 | |
| Accent on background | 3.38:1 | AA Large 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 | #3C2415 (Text 1) | #4A2C2A (Text 2) | #6F4E37 (Text 3) | #8B4513 (Text 4) | #A0522D (Text 5) |
|---|---|---|---|---|---|
| #3C2415 | Same color | 1.16— | 1.94— | 2.03— | 2.57— |
| #4A2C2A | 1.16— | Same color | 1.67— | 1.76— | 2.22— |
| #6F4E37 | 1.94— | 1.67— | Same color | 1.05— | 1.33— |
| #8B4513 | 2.03— | 1.76— | 1.05— | Same color | 1.26— |
| #A0522D | 2.57— | 2.22— | 1.33— | 1.26— | Same color |
Shades
Shades and tints (50–950)
