Palette Library
Espresso Bar
An earthy palette for food with a brown primary and a yellow accent. Text reaches 14.58:1 in light mode and 13.83:1 in dark mode.
How to use it
Espresso Bar's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #feffff, cards #edf0f3, and text #202a31 at 14.58:1; buttons #6f4e37 with #feffff labels at 7.43:1; highlights #e9b872 with #202a31 text at 8.04:1.
- Dark mode: page #181b1d, cards #232b31, and text #dfe7ed at 13.83:1; buttons #c7a288 with #181b1d labels at 7.37:1; highlights #b58640 with #181b1d text at 5.31:1.
- Links: #6f4e37 reaches 7.43:1 on the light page, and #c7a288 reaches 7.37:1 on the dark page.
- The accent as text: In light mode, keep #e9b872 for fills and badges, not text: it reaches only 1.81:1 on the page.
Preview
The same palette on a small interface in light and dark.
Roles
Five roles and their two foregrounds. Copy the exact HEX values.
| Role | Light | Dark |
|---|---|---|
| Background | #feffff | #181b1d |
| Surface | #edf0f3 | #232b31 |
| Text | #202a31 | #dfe7ed |
| Primary | #6f4e37 | #c7a288 |
| Primary Foreground | #feffff | #181b1d |
| Accent | #e9b872 | #b58640 |
| Accent Foreground | #202a31 | #181b1d |
Contrast matrix
Five required pairs per mode, judged on the final 8-bit colors.
Light mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 14.58:1AAArequired | 12.77:1AAArequired | 1.96:1Fail | 8.04:1AAA |
| Primary | 7.43:1AAArequired | 6.50:1AA | 1.00:1Fail | 4.09:1AA large |
| Accent | 1.81:1Fail | 1.58:1Fail | 4.09:1AA large | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.14:1Fail | 7.43:1AAArequired | 1.81:1Fail |
| Accent Foreground | 14.58:1AAA | 12.77:1AAA | 1.96:1Fail | 8.04:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 13.83:1AAArequired | 11.48:1AAArequired | 1.87:1Fail | 2.60:1Fail |
| Primary | 7.37:1AAArequired | 6.12:1AA | 1.00:1Fail | 1.38:1Fail |
| Accent | 5.31:1AA | 4.41:1AA large | 1.38:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.20:1Fail | 7.37:1AAArequired | 5.31:1AA |
| Accent Foreground | 1.00:1Fail | 1.20:1Fail | 7.37:1AAA | 5.31:1AArequired |
AAA: normal text ≥ 7:1. AA: normal text ≥ 4.5:1. AA large: large text ≥ 3:1 (24 px, or 18.66 px bold). UI: required component contrast ≥ 3:1. Fail: below 3:1. Required marks the five pairs ColorLint checks in each mode. Other pairs are informational.
ColorLint checks color contrast only. Passing pairs do not mean a page is accessible.
Exports
Both modes, with the exact values the Palette Generator exports.
CSS variables
/* ColorLint palette (v1). Light values in :root; dark values in .dark. */
:root {
--background: #feffff;
--surface: #edf0f3;
--text: #202a31;
--primary: #6f4e37;
--primary-foreground: #feffff;
--accent: #e9b872;
--accent-foreground: #202a31;
}
.dark {
--background: #181b1d;
--surface: #232b31;
--text: #dfe7ed;
--primary: #c7a288;
--primary-foreground: #181b1d;
--accent: #b58640;
--accent-foreground: #181b1d;
}
Tailwind v4
/* ColorLint palette for Tailwind CSS v4 (palette v1). */
/* Paste after @import "tailwindcss". Add the "dark" class to <html> for dark mode. */
@custom-variant dark (&:where(.dark, .dark *));
:root {
color-scheme: light;
--background: #feffff;
--surface: #edf0f3;
--text: #202a31;
--primary: #6f4e37;
--primary-foreground: #feffff;
--accent: #e9b872;
--accent-foreground: #202a31;
}
.dark {
color-scheme: dark;
--background: #181b1d;
--surface: #232b31;
--text: #dfe7ed;
--primary: #c7a288;
--primary-foreground: #181b1d;
--accent: #b58640;
--accent-foreground: #181b1d;
}
@theme inline {
--color-background: var(--background);
--color-surface: var(--surface);
--color-text: var(--text);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
}
Compared with similar palettes
- Compared with Harvest Table, which shares the earthy style: text reaches 14.58:1 in light mode against 17.02:1, the primary is brown where Harvest Table's is orange, and the accent is yellow where Harvest Table's is brown.
- Compared with Spice Route, which shares the earthy style: text reaches 14.58:1 in light mode against 13.53:1, the primary is brown where Spice Route's is red, and both use a yellow accent.