Palette Library

Caramel

An earthy palette for ecommerce with a brown primary and a yellow accent. Text reaches 15.95:1 in light mode and 13.05:1 in dark mode.

How to use it

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

  • Light mode: page #fffaf6, cards #f4ebe4, and text #261d16 at 15.95:1; buttons #8a4b08 with #fffaf6 labels at 6.55:1; highlights #f6bd60 with #261d16 text at 9.73:1.
  • Dark mode: page #1e1a17, cards #2d2723, and text #e8ded7 at 13.05:1; buttons #db955e with #1e1a17 labels at 6.97:1; highlights #f6bd60 with #1e1a17 text at 10.17:1.
  • Links: #8a4b08 reaches 6.55:1 on the light page, and #db955e reaches 6.97:1 on the dark page.
  • The accent as text: In light mode, keep #f6bd60 for fills and badges, not text: it reaches only 1.63: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
#fffaf6
#1e1a17
Surface
#f4ebe4
#2d2723
Text
#261d16
#e8ded7
Primary
#8a4b08
#db955e
Primary Foreground
#fffaf6
#1e1a17
Accent
#f6bd60
#f6bd60
Accent Foreground
#261d16
#1e1a17

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
Text15.95:1AAArequired14.05:1AAArequired2.43:1Fail9.73:1AAA
Primary6.55:1AArequired5.77:1AA1.00:1Fail4.00:1AA large
Accent1.63:1Fail1.44:1Fail4.00:1AA large1.00:1Fail
Primary Foreground1.00:1Fail1.13:1Fail6.55:1AArequired1.63:1Fail
Accent Foreground15.95:1AAA14.05:1AAA2.43:1Fail9.73:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text13.05:1AAArequired11.12:1AAArequired1.87:1Fail1.28:1Fail
Primary6.97:1AArequired5.94:1AA1.00:1Fail1.45:1Fail
Accent10.17:1AAA8.67:1AAA1.45:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.17:1Fail6.97:1AArequired10.17:1AAA
Accent Foreground1.00:1Fail1.17:1Fail6.97:1AA10.17:1AAArequired

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: #fffaf6;
  --surface: #f4ebe4;
  --text: #261d16;
  --primary: #8a4b08;
  --primary-foreground: #fffaf6;
  --accent: #f6bd60;
  --accent-foreground: #261d16;
}

.dark {
  --background: #1e1a17;
  --surface: #2d2723;
  --text: #e8ded7;
  --primary: #db955e;
  --primary-foreground: #1e1a17;
  --accent: #f6bd60;
  --accent-foreground: #1e1a17;
}

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: #fffaf6;
  --surface: #f4ebe4;
  --text: #261d16;
  --primary: #8a4b08;
  --primary-foreground: #fffaf6;
  --accent: #f6bd60;
  --accent-foreground: #261d16;
}

.dark {
  color-scheme: dark;
  --background: #1e1a17;
  --surface: #2d2723;
  --text: #e8ded7;
  --primary: #db955e;
  --primary-foreground: #1e1a17;
  --accent: #f6bd60;
  --accent-foreground: #1e1a17;
}

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