Palette Library

Cart and Go

A bold palette for ecommerce with a purple primary and a yellow accent. Text reaches 12.85:1 in light mode and 13.58:1 in dark mode.

How to use it

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

  • Light mode: page #fffdfc, cards #f3f3f3, and text #3a2f23 at 12.85:1; buttons #4338ca with #fffdfc labels at 7.79:1; highlights #facc15 with #3a2f23 text at 8.51:1.
  • Dark mode: page #1f1811, cards #2f2720, and text #e4e2e1 at 13.58:1; buttons #95a1ff with #1f1811 labels at 7.36:1; highlights #facc15 with #1f1811 text at 11.45:1.
  • Links: #4338ca reaches 7.79:1 on the light page, and #95a1ff reaches 7.36:1 on the dark page.
  • The accent as text: In light mode, keep #facc15 for fills and badges, not text: it reaches only 1.51: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
#fffdfc
#1f1811
Surface
#f3f3f3
#2f2720
Text
#3a2f23
#e4e2e1
Primary
#4338ca
#95a1ff
Primary Foreground
#fffdfc
#1f1811
Accent
#facc15
#facc15
Accent Foreground
#3a2f23
#1f1811

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
Text12.85:1AAArequired11.74:1AAArequired1.64:1Fail8.51:1AAA
Primary7.79:1AAArequired7.12:1AAA1.00:1Fail5.16:1AA
Accent1.51:1Fail1.38:1Fail5.16:1AA1.00:1Fail
Primary Foreground1.00:1Fail1.09:1Fail7.79:1AAArequired1.51:1Fail
Accent Foreground12.85:1AAA11.74:1AAA1.64:1Fail8.51:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text13.58:1AAArequired11.35:1AAArequired1.84:1Fail1.18:1Fail
Primary7.36:1AAArequired6.15:1AA1.00:1Fail1.55:1Fail
Accent11.45:1AAA9.57:1AAA1.55:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.19:1Fail7.36:1AAArequired11.45:1AAA
Accent Foreground1.00:1Fail1.19:1Fail7.36:1AAA11.45: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: #fffdfc;
  --surface: #f3f3f3;
  --text: #3a2f23;
  --primary: #4338ca;
  --primary-foreground: #fffdfc;
  --accent: #facc15;
  --accent-foreground: #3a2f23;
}

.dark {
  --background: #1f1811;
  --surface: #2f2720;
  --text: #e4e2e1;
  --primary: #95a1ff;
  --primary-foreground: #1f1811;
  --accent: #facc15;
  --accent-foreground: #1f1811;
}

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: #fffdfc;
  --surface: #f3f3f3;
  --text: #3a2f23;
  --primary: #4338ca;
  --primary-foreground: #fffdfc;
  --accent: #facc15;
  --accent-foreground: #3a2f23;
}

.dark {
  color-scheme: dark;
  --background: #1f1811;
  --surface: #2f2720;
  --text: #e4e2e1;
  --primary: #95a1ff;
  --primary-foreground: #1f1811;
  --accent: #facc15;
  --accent-foreground: #1f1811;
}

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