PreviewingGo to this paletteOpen in generator
Code
/* Espresso Crema — colorset.net */
:root {
--color-1: #3C2415;
--color-2: #5D4037;
--color-3: #7E5C4A;
--color-4: #9F785D;
--color-5: #C09470;
--color-bg: #FFF5ED;
--color-surface: #F8EBE0;
--color-border: #E2D2C5;
--color-text: #3C2415;
--color-muted: #7E6556;
--color-primary: #9F785D;
--color-on-primary: #000000;
--color-accent: #5D4037;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160D08;
--color-surface: #201712;
--color-border: #372B23;
--color-text: #BC9E85;
--color-muted: #957E6B;
--color-primary: #9F785D;
--color-on-primary: #160D08;
--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 #C09470 | adjusted for contrast · from #3C2415 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #C09470 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #7E5C4A |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.42:1 | AAA pass 4.5:1 | |
| Text on surface | 12.33:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 5.32:1 | AA pass 4.5:1 | |
| Label on accent | 9.32:1 | AAA pass 4.5:1 | |
| Primary on background | 3.67:1 | AA Large pass 3:1 | |
| Accent on background | 8.67:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.64:1 | AAA pass 4.5:1 | |
| Text on surface | 7.02:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 4.86:1 | AA pass 4.5:1 | |
| Label on accent | 5.67:1 | AA pass 4.5:1 | |
| Primary on background | 4.86:1 | AA 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) | #5D4037 (Text 2) | #7E5C4A (Text 3) | #9F785D (Text 4) | #C09470 (Text 5) |
|---|---|---|---|---|---|
| #3C2415 | Same color | 1.55— | 2.42— | 3.65AA Large | 5.30AA |
| #5D4037 | 1.55— | Same color | 1.56— | 2.36— | 3.42AA Large |
| #7E5C4A | 2.42— | 1.56— | Same color | 1.51— | 2.19— |
| #9F785D | 3.65AA Large | 2.36— | 1.51— | Same color | 1.45— |
| #C09470 | 5.30AA | 3.42AA Large | 2.19— | 1.45— | Same color |
Shades
Shades and tints (50–950)
