PreviewingGo to this paletteOpen in generator
Code
/* Espresso Tonic Bar — colorset.net */
:root {
--color-1: #F4E9DD;
--color-2: #5B301C;
--color-3: #8A542D;
--color-4: #E5955D;
--color-5: #2A140A;
--color-bg: #F4E9DD;
--color-surface: #F8F1EA;
--color-border: #DDD0C1;
--color-text: #2A140A;
--color-muted: #7E6357;
--color-primary: #AC6127;
--color-on-primary: #FFFFFF;
--color-accent: #5B301C;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #2A140A;
--color-surface: #361F14;
--color-border: #4C3429;
--color-text: #F4E9DD;
--color-muted: #938A7F;
--color-primary: #E5955D;
--color-on-primary: #2A140A;
--color-accent: #84685C;
--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 | from palette · color 1 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #8A542D | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #8A542D |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.59:1 | AAA pass 4.5:1 | |
| Text on surface | 15.60:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.61:1 | AA pass 4.5:1 | |
| Label on primary | 4.67:1 | AA pass 4.5:1 | |
| Label on accent | 11.14:1 | AAA pass 4.5:1 | |
| Primary on background | 3.90:1 | AA Large pass 3:1 | |
| Accent on background | 9.31:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.59:1 | AAA pass 4.5:1 | |
| Text on surface | 12.87:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.14:1 | AA pass 4.5:1 | |
| Label on primary | 7.31:1 | AAA pass 4.5:1 | |
| Label on accent | 5.10:1 | AA pass 4.5:1 | |
| Primary on background | 7.31:1 | AAA pass 3:1 | |
| Accent on background | 3.42: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 | #F4E9DD (Text 1) | #5B301C (Text 2) | #8A542D (Text 3) | #E5955D (Text 4) | #2A140A (Text 5) |
|---|---|---|---|---|---|
| #F4E9DD | Same color | 9.31AAA | 5.18AA | 2.00— | 14.59AAA |
| #5B301C | 9.31AAA | Same color | 1.80— | 4.66AA | 1.57— |
| #8A542D | 5.18AA | 1.80— | Same color | 2.60— | 2.82— |
| #E5955D | 2.00— | 4.66AA | 2.60— | Same color | 7.31AAA |
| #2A140A | 14.59AAA | 1.57— | 2.82— | 7.31AAA | Same color |
Shades
Shades and tints (50–950)
