Palette Library

Market Stall

A bold palette for ecommerce with a red primary and a green accent. Text reaches 13.29:1 in light mode and 17.05:1 in dark mode.

How to use it

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

  • Light mode: page #fffefe, cards #f9f1f0, and text #332e2d at 13.29:1; buttons #dc2626 with #fffefe labels at 4.79:1; highlights #16a34a with #000000 text at 6.37:1.
  • Dark mode: page #0d0d0d, cards #191818, and text #f8eeec at 17.05:1; buttons #ff5c51 with #0d0d0d labels at 6.38:1; highlights #2eb057 with #0d0d0d text at 6.90:1.
  • Links: #dc2626 reaches 4.79:1 on the light page, and #ff5c51 reaches 6.38:1 on the dark page.
  • The accent as text: In light mode, keep #16a34a for fills and badges, not text: it reaches only 3.27: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
#fffefe
#0d0d0d
Surface
#f9f1f0
#191818
Text
#332e2d
#f8eeec
Primary
#dc2626
#ff5c51
Primary Foreground
#fffefe
#0d0d0d
Accent
#16a34a
#2eb057
Accent Foreground
#000000
#0d0d0d

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.29:1AAArequired12.02:1AAArequired2.77:1Fail4.05:1AA large
Primary4.79:1AArequired4.33:1AA large1.00:1Fail1.46:1Fail
Accent3.27:1AA large2.96:1Fail1.46:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.10:1Fail4.79:1AArequired3.27:1AA large
Accent Foreground20.85:1AAA18.86:1AAA4.34:1AA large6.37:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text17.05:1AAArequired15.55:1AAArequired2.67:1Fail2.46:1Fail
Primary6.38:1AArequired5.82:1AA1.00:1Fail1.08:1Fail
Accent6.90:1AA6.29:1AA1.08:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.09:1Fail6.38:1AArequired6.90:1AA
Accent Foreground1.00:1Fail1.09:1Fail6.38:1AA6.90: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: #fffefe;
  --surface: #f9f1f0;
  --text: #332e2d;
  --primary: #dc2626;
  --primary-foreground: #fffefe;
  --accent: #16a34a;
  --accent-foreground: #000000;
}

.dark {
  --background: #0d0d0d;
  --surface: #191818;
  --text: #f8eeec;
  --primary: #ff5c51;
  --primary-foreground: #0d0d0d;
  --accent: #2eb057;
  --accent-foreground: #0d0d0d;
}

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: #fffefe;
  --surface: #f9f1f0;
  --text: #332e2d;
  --primary: #dc2626;
  --primary-foreground: #fffefe;
  --accent: #16a34a;
  --accent-foreground: #000000;
}

.dark {
  color-scheme: dark;
  --background: #0d0d0d;
  --surface: #191818;
  --text: #f8eeec;
  --primary: #ff5c51;
  --primary-foreground: #0d0d0d;
  --accent: #2eb057;
  --accent-foreground: #0d0d0d;
}

@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 Ruby Checkout, which shares the bold style: text reaches 13.29:1 in light mode against 13.82:1, both use a red primary, and the accent is green where Ruby Checkout's is yellow.
  • Compared with Terminal Glow, which shares the bold style: text reaches 13.29:1 in light mode against 13.92:1, the primary is red where Terminal Glow's is green, and the accent is green where Terminal Glow's is purple.