Palette Library

Chestnut

An earthy palette for ecommerce with a brown primary and a red accent. Text reaches 13.45:1 in light mode and 13.13:1 in dark mode.

How to use it

Chestnut's roles on a real interface, with the ratios stored for this palette.

  • Light mode: page #fbf6f3, cards #f0ecea, and text #302824 at 13.45:1; buttons #6b3e26 with #fbf6f3 labels at 8.35:1; highlights #e5989b with #302824 text at 6.39:1.
  • Dark mode: page #1b1918, cards #282727, and text #e3dedc at 13.13:1; buttons #d7a287 with #1b1918 labels at 7.84:1; highlights #c77c80 with #1b1918 text at 5.52:1.
  • Links: #6b3e26 reaches 8.35:1 on the light page, and #d7a287 reaches 7.84:1 on the dark page.
  • The accent as text: In light mode, keep #e5989b for fills and badges, not text: it reaches only 2.10: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
#fbf6f3
#1b1918
Surface
#f0ecea
#282727
Text
#302824
#e3dedc
Primary
#6b3e26
#d7a287
Primary Foreground
#fbf6f3
#1b1918
Accent
#e5989b
#c77c80
Accent Foreground
#302824
#1b1918

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
Text13.45:1AAArequired12.29:1AAArequired1.61:1Fail6.39:1AA
Primary8.35:1AAArequired7.63:1AAA1.00:1Fail3.96:1AA large
Accent2.10:1Fail1.92:1Fail3.96:1AA large1.00:1Fail
Primary Foreground1.00:1Fail1.09:1Fail8.35:1AAArequired2.10:1Fail
Accent Foreground13.45:1AAA12.29:1AAA1.61:1Fail6.39:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text13.13:1AAArequired11.17:1AAArequired1.67:1Fail2.37:1Fail
Primary7.84:1AAArequired6.67:1AA1.00:1Fail1.42:1Fail
Accent5.52:1AA4.69:1AA1.42:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.17:1Fail7.84:1AAArequired5.52:1AA
Accent Foreground1.00:1Fail1.17:1Fail7.84:1AAA5.52: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: #fbf6f3;
  --surface: #f0ecea;
  --text: #302824;
  --primary: #6b3e26;
  --primary-foreground: #fbf6f3;
  --accent: #e5989b;
  --accent-foreground: #302824;
}

.dark {
  --background: #1b1918;
  --surface: #282727;
  --text: #e3dedc;
  --primary: #d7a287;
  --primary-foreground: #1b1918;
  --accent: #c77c80;
  --accent-foreground: #1b1918;
}

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: #fbf6f3;
  --surface: #f0ecea;
  --text: #302824;
  --primary: #6b3e26;
  --primary-foreground: #fbf6f3;
  --accent: #e5989b;
  --accent-foreground: #302824;
}

.dark {
  color-scheme: dark;
  --background: #1b1918;
  --surface: #282727;
  --text: #e3dedc;
  --primary: #d7a287;
  --primary-foreground: #1b1918;
  --accent: #c77c80;
  --accent-foreground: #1b1918;
}

@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 Caramel, which shares the earthy style: text reaches 13.45:1 in light mode against 15.95:1, both use a brown primary, and the accent is red where Caramel's is yellow.
  • Compared with Terracotta Studio, which shares the earthy style: text reaches 13.45:1 in light mode against 16.96:1, the primary is brown where Terracotta Studio's is red, and the accent is red where Terracotta Studio's is teal.