Palette Library

Soft Serve

A pastel palette for food with a pink primary and a green accent. Text reaches 14.02:1 in light mode and 16.57:1 in dark mode.

How to use it

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

  • Light mode: page #fdf9fa, cards #f6e8ec, and text #2d2729 at 14.02:1; buttons #a5486b with #fdf9fa labels at 5.37:1; highlights #c7f9cc with #2d2729 text at 12.44:1.
  • Dark mode: page #0f0e0e, cards #1e1b1c, and text #f0edee at 16.57:1; buttons #e07d9f with #0f0e0e labels at 6.97:1; highlights #c7f9cc with #0f0e0e text at 16.38:1.
  • Links: #a5486b reaches 5.37:1 on the light page, and #e07d9f reaches 6.97:1 on the dark page.
  • The accent as text: In light mode, keep #c7f9cc for fills and badges, not text: it reaches only 1.12: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
#fdf9fa
#0f0e0e
Surface
#f6e8ec
#1e1b1c
Text
#2d2729
#f0edee
Primary
#a5486b
#e07d9f
Primary Foreground
#fdf9fa
#0f0e0e
Accent
#c7f9cc
#c7f9cc
Accent Foreground
#2d2729
#0f0e0e

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
Text14.02:1AAArequired12.32:1AAArequired2.60:1Fail12.44:1AAA
Primary5.37:1AArequired4.72:1AA1.00:1Fail4.77:1AA
Accent1.12:1Fail1.01:1Fail4.77:1AA1.00:1Fail
Primary Foreground1.00:1Fail1.13:1Fail5.37:1AArequired1.12:1Fail
Accent Foreground14.02:1AAA12.32:1AAA2.60:1Fail12.44:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.57:1AAArequired14.69:1AAArequired2.37:1Fail1.01:1Fail
Primary6.97:1AArequired6.18:1AA1.00:1Fail2.34:1Fail
Accent16.38:1AAA14.52:1AAA2.34:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.12:1Fail6.97:1AArequired16.38:1AAA
Accent Foreground1.00:1Fail1.12:1Fail6.97:1AA16.38: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: #fdf9fa;
  --surface: #f6e8ec;
  --text: #2d2729;
  --primary: #a5486b;
  --primary-foreground: #fdf9fa;
  --accent: #c7f9cc;
  --accent-foreground: #2d2729;
}

.dark {
  --background: #0f0e0e;
  --surface: #1e1b1c;
  --text: #f0edee;
  --primary: #e07d9f;
  --primary-foreground: #0f0e0e;
  --accent: #c7f9cc;
  --accent-foreground: #0f0e0e;
}

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: #fdf9fa;
  --surface: #f6e8ec;
  --text: #2d2729;
  --primary: #a5486b;
  --primary-foreground: #fdf9fa;
  --accent: #c7f9cc;
  --accent-foreground: #2d2729;
}

.dark {
  color-scheme: dark;
  --background: #0f0e0e;
  --surface: #1e1b1c;
  --text: #f0edee;
  --primary: #e07d9f;
  --primary-foreground: #0f0e0e;
  --accent: #c7f9cc;
  --accent-foreground: #0f0e0e;
}

@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 Lemon Tart, which shares the pastel style: text reaches 14.02:1 in light mode against 13.81:1, the primary is pink where Lemon Tart's is green, and the accent is green where Lemon Tart's is yellow.
  • Compared with Mint Chip, which shares the pastel style: text reaches 14.02:1 in light mode against 14.89:1, the primary is pink where Mint Chip's is green, and both use a green accent.