Palette Library

Berry Smoothie

A playful palette for food with a purple primary and a red accent. Text reaches 17.52:1 in light mode and 16.04:1 in dark mode.

How to use it

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

  • Light mode: page #f6f9fb, cards #e5eef6, and text #0e141a at 17.52:1; buttons #862e9c with #f6f9fb labels at 6.88:1; highlights #ff8787 with #0e141a text at 7.99:1.
  • Dark mode: page #14191d, cards #252627, and text #ebf5ff at 16.04:1; buttons #d77def with #14191d labels at 6.80:1; highlights #ff8787 with #14191d text at 7.64:1.
  • Links: #862e9c reaches 6.88:1 on the light page, and #d77def reaches 6.80:1 on the dark page.
  • The accent as text: In light mode, keep #ff8787 for fills and badges, not text: it reaches only 2.19: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
#f6f9fb
#14191d
Surface
#e5eef6
#252627
Text
#0e141a
#ebf5ff
Primary
#862e9c
#d77def
Primary Foreground
#f6f9fb
#14191d
Accent
#ff8787
#ff8787
Accent Foreground
#0e141a
#14191d

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
Text17.52:1AAArequired15.78:1AAArequired2.54:1Fail7.99:1AAA
Primary6.88:1AArequired6.20:1AA1.00:1Fail3.14:1AA large
Accent2.19:1Fail1.97:1Fail3.14:1AA large1.00:1Fail
Primary Foreground1.00:1Fail1.11:1Fail6.88:1AArequired2.19:1Fail
Accent Foreground17.52:1AAA15.78:1AAA2.54:1Fail7.99:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.04:1AAArequired13.74:1AAArequired2.35:1Fail2.09:1Fail
Primary6.80:1AArequired5.82:1AA1.00:1Fail1.12:1Fail
Accent7.64:1AAA6.54:1AA1.12:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.16:1Fail6.80:1AArequired7.64:1AAA
Accent Foreground1.00:1Fail1.16:1Fail6.80:1AA7.64: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: #f6f9fb;
  --surface: #e5eef6;
  --text: #0e141a;
  --primary: #862e9c;
  --primary-foreground: #f6f9fb;
  --accent: #ff8787;
  --accent-foreground: #0e141a;
}

.dark {
  --background: #14191d;
  --surface: #252627;
  --text: #ebf5ff;
  --primary: #d77def;
  --primary-foreground: #14191d;
  --accent: #ff8787;
  --accent-foreground: #14191d;
}

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: #f6f9fb;
  --surface: #e5eef6;
  --text: #0e141a;
  --primary: #862e9c;
  --primary-foreground: #f6f9fb;
  --accent: #ff8787;
  --accent-foreground: #0e141a;
}

.dark {
  color-scheme: dark;
  --background: #14191d;
  --surface: #252627;
  --text: #ebf5ff;
  --primary: #d77def;
  --primary-foreground: #14191d;
  --accent: #ff8787;
  --accent-foreground: #14191d;
}

@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 Sunrise Cafe, which shares the playful style: text reaches 17.52:1 in light mode against 15.28:1, the primary is purple where Sunrise Cafe's is red, and the accent is red where Sunrise Cafe's is yellow.
  • Compared with Orchard, which shares the playful style: text reaches 17.52:1 in light mode against 15.18:1, the primary is purple where Orchard's is green, and both use a red accent.