Palette Library

Linen

A muted palette for ecommerce with a brown primary and a yellow accent. Text reaches 16.23:1 in light mode and 15.62:1 in dark mode.

How to use it

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

  • Light mode: page #fdfbfb, cards #efebe8, and text #281b10 at 16.23:1; buttons #6b5b4b with #fdfbfb labels at 6.31:1; highlights #c9b79c with #281b10 text at 8.55:1.
  • Dark mode: page #17100a, cards #211f1d, and text #f3e8df at 15.62:1; buttons #b5a392 with #17100a labels at 7.73:1; highlights #948369 with #17100a text at 5.12:1.
  • Links: #6b5b4b reaches 6.31:1 on the light page, and #b5a392 reaches 7.73:1 on the dark page.
  • The accent as text: In light mode, keep #c9b79c for fills and badges, not text: it reaches only 1.89: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
#fdfbfb
#17100a
Surface
#efebe8
#211f1d
Text
#281b10
#f3e8df
Primary
#6b5b4b
#b5a392
Primary Foreground
#fdfbfb
#17100a
Accent
#c9b79c
#948369
Accent Foreground
#281b10
#17100a

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
Text16.23:1AAArequired14.12:1AAArequired2.56:1Fail8.55:1AAA
Primary6.31:1AArequired5.49:1AA1.00:1Fail3.33:1AA large
Accent1.89:1Fail1.65:1Fail3.33:1AA large1.00:1Fail
Primary Foreground1.00:1Fail1.14:1Fail6.31:1AArequired1.89:1Fail
Accent Foreground16.23:1AAA14.12:1AAA2.56:1Fail8.55:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text15.62:1AAArequired13.62:1AAArequired2.02:1Fail3.05:1AA large
Primary7.73:1AAArequired6.74:1AA1.00:1Fail1.50:1Fail
Accent5.12:1AA4.46:1AA large1.50:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.14:1Fail7.73:1AAArequired5.12:1AA
Accent Foreground1.00:1Fail1.14:1Fail7.73:1AAA5.12: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: #fdfbfb;
  --surface: #efebe8;
  --text: #281b10;
  --primary: #6b5b4b;
  --primary-foreground: #fdfbfb;
  --accent: #c9b79c;
  --accent-foreground: #281b10;
}

.dark {
  --background: #17100a;
  --surface: #211f1d;
  --text: #f3e8df;
  --primary: #b5a392;
  --primary-foreground: #17100a;
  --accent: #948369;
  --accent-foreground: #17100a;
}

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: #fdfbfb;
  --surface: #efebe8;
  --text: #281b10;
  --primary: #6b5b4b;
  --primary-foreground: #fdfbfb;
  --accent: #c9b79c;
  --accent-foreground: #281b10;
}

.dark {
  color-scheme: dark;
  --background: #17100a;
  --surface: #211f1d;
  --text: #f3e8df;
  --primary: #b5a392;
  --primary-foreground: #17100a;
  --accent: #948369;
  --accent-foreground: #17100a;
}

@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 Ecommerce topic: text reaches 16.23:1 in light mode against 15.95:1, both use a brown primary, and both use a yellow accent.
  • Compared with Espresso Bar, which shares a color: text reaches 16.23:1 in light mode against 14.58:1, both use a brown primary, and both use a yellow accent.