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.

Light mode

A place for your ideas

Start with colors that work together.

Your next project

A surface for the details that matter.

Get startedNew

Explore your palette →

Dark mode

A place for your ideas

Start with colors that work together.

Your next project

A surface for the details that matter.

Get startedNew

Explore your palette →

Roles

Five roles and their two foregrounds. Copy the exact HEX values.

RoleLightDark
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.

light mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text14.58:1AAArequired12.77:1AAArequired1.96:1Fail8.04:1AAA
Primary7.43:1AAArequired6.50:1AA1.00:1Fail4.09:1AA large
Accent1.81:1Fail1.58:1Fail4.09:1AA large1.00:1Fail
Primary Foreground1.00:1Fail1.14:1Fail7.43:1AAArequired1.81:1Fail
Accent Foreground14.58:1AAA12.77:1AAA1.96:1Fail8.04:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text13.83:1AAArequired11.48:1AAArequired1.87:1Fail2.60:1Fail
Primary7.37:1AAArequired6.12:1AA1.00:1Fail1.38:1Fail
Accent5.31:1AA4.41:1AA large1.38:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.20:1Fail7.37:1AAArequired5.31:1AA
Accent Foreground1.00:1Fail1.20:1Fail7.37:1AAA5.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.