PreviewingGo to this paletteOpen in generator
Code
/* Espresso Brown — colorset.net */
:root {
--color-1: #2C1810;
--color-2: #8B4513;
--color-3: #A0522D;
--color-4: #CD853F;
--color-5: #DEB887;
--color-bg: #FFF5E8;
--color-surface: #F6ECDF;
--color-border: #DFD3C3;
--color-text: #2C1810;
--color-muted: #7D645A;
--color-primary: #A0522D;
--color-on-primary: #FFFFFF;
--color-accent: #A48051;
--color-on-accent: #2C1810;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #2C1810;
--color-surface: #38231A;
--color-border: #50372D;
--color-text: #D3BB9C;
--color-muted: #A08D76;
--color-primary: #AD5E39;
--color-on-primary: #FFFFFF;
--color-accent: #866C62;
--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 #DEB887 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #DEB887 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #A0522D |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #CD853F | adjusted for contrast · from #A0522D |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.64:1 | AAA pass 4.5:1 | |
| Text on surface | 14.44:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 5.62:1 | AA pass 4.5:1 | |
| Label on accent | 4.65:1 | AA pass 4.5:1 | |
| Primary on background | 5.21:1 | AA pass 3:1 | |
| Accent on background | 3.37:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.12:1 | AAA pass 4.5:1 | |
| Text on surface | 7.98:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.27:1 | AA pass 4.5:1 | |
| Label on primary | 4.73:1 | AA pass 4.5:1 | |
| Label on accent | 4.84:1 | AA pass 4.5:1 | |
| Primary on background | 3.56:1 | AA Large pass 3:1 | |
| Accent on background | 3.48: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 | #2C1810 (Text 1) | #8B4513 (Text 2) | #A0522D (Text 3) | #CD853F (Text 4) | #DEB887 (Text 5) |
|---|---|---|---|---|---|
| #2C1810 | Same color | 2.38— | 3.00AA Large | 5.64AA | 9.08AAA |
| #8B4513 | 2.38— | Same color | 1.26— | 2.37— | 3.82AA Large |
| #A0522D | 3.00AA Large | 1.26— | Same color | 1.88— | 3.02AA Large |
| #CD853F | 5.64AA | 2.37— | 1.88— | Same color | 1.61— |
| #DEB887 | 9.08AAA | 3.82AA Large | 3.02AA Large | 1.61— | Same color |
Shades
Shades and tints (50–950)
