PreviewingGo to this paletteOpen in generator
Code
/* Espresso Shot — colorset.net */
:root {
--color-1: #100703;
--color-2: #211209;
--color-3: #3B2214;
--color-4: #9B673B;
--color-5: #E5D5BF;
--color-bg: #FBF6EF;
--color-surface: #F2EDE6;
--color-border: #DBD4CA;
--color-text: #100703;
--color-muted: #6B5E56;
--color-primary: #9B673B;
--color-on-primary: #FFFFFF;
--color-accent: #211209;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #100703;
--color-surface: #1A100A;
--color-border: #31231B;
--color-text: #E5D5BF;
--color-muted: #897B67;
--color-primary: #9B673B;
--color-on-primary: #FFFFFF;
--color-accent: #6D6058;
--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 #E5D5BF | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| 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 #9B673B |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.53:1 | AAA pass 4.5:1 | |
| Text on surface | 17.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.81:1 | AA pass 4.5:1 | |
| Label on primary | 4.78:1 | AA pass 4.5:1 | |
| Label on accent | 18.18:1 | AAA pass 4.5:1 | |
| Primary on background | 4.44:1 | AA Large pass 3:1 | |
| Accent on background | 16.91:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.86:1 | AAA pass 4.5:1 | |
| Text on surface | 13.01:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.83:1 | AA pass 4.5:1 | |
| Label on primary | 4.78:1 | AA pass 4.5:1 | |
| Label on accent | 6.06:1 | AA pass 4.5:1 | |
| Primary on background | 4.17:1 | AA Large pass 3:1 | |
| Accent on background | 3.29: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 | #100703 (Text 1) | #211209 (Text 2) | #3B2214 (Text 3) | #9B673B (Text 4) | #E5D5BF (Text 5) |
|---|---|---|---|---|---|
| #100703 | Same color | 1.10— | 1.35— | 4.17AA Large | 13.86AAA |
| #211209 | 1.10— | Same color | 1.23— | 3.81AA Large | 12.64AAA |
| #3B2214 | 1.35— | 1.23— | Same color | 3.09AA Large | 10.25AAA |
| #9B673B | 4.17AA Large | 3.81AA Large | 3.09AA Large | Same color | 3.32AA Large |
| #E5D5BF | 13.86AAA | 12.64AAA | 10.25AAA | 3.32AA Large | Same color |
Shades
Shades and tints (50–950)
