Palette Library

Cherry Blossom

A pastel palette for creative with a pink primary and a pink accent. Text reaches 17.53:1 in light mode and 15.27:1 in dark mode.

How to use it

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

  • Light mode: page #f6f6f4, cards #eeeeed, and text #12100f at 17.53:1; buttons #be185d with #f6f6f4 labels at 5.57:1; highlights #fbcfe8 with #12100f text at 13.72:1.
  • Dark mode: page #0f0d0a, cards #1a1611, and text #ebe3da at 15.27:1; buttons #ff6294 with #0f0d0a labels at 6.86:1; highlights #fbcfe8 with #0f0d0a text at 14.03:1.
  • Links: #be185d reaches 5.57:1 on the light page, and #ff6294 reaches 6.86:1 on the dark page.
  • The accent as text: In light mode, keep #fbcfe8 for fills and badges, not text: it reaches only 1.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
#f6f6f4
#0f0d0a
Surface
#eeeeed
#1a1611
Text
#12100f
#ebe3da
Primary
#be185d
#ff6294
Primary Foreground
#f6f6f4
#0f0d0a
Accent
#fbcfe8
#fbcfe8
Accent Foreground
#12100f
#0f0d0a

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.53:1AAArequired16.34:1AAArequired3.14:1AA large13.72:1AAA
Primary5.57:1AArequired5.20:1AA1.00:1Fail4.36:1AA large
Accent1.27:1Fail1.19:1Fail4.36:1AA large1.00:1Fail
Primary Foreground1.00:1Fail1.07:1Fail5.57:1AArequired1.27:1Fail
Accent Foreground17.53:1AAA16.34:1AAA3.14:1AA large13.72:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text15.27:1AAArequired14.16:1AAArequired2.22:1Fail1.08:1Fail
Primary6.86:1AArequired6.36:1AA1.00:1Fail2.04:1Fail
Accent14.03:1AAA13.02:1AAA2.04:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.07:1Fail6.86:1AArequired14.03:1AAA
Accent Foreground1.00:1Fail1.07:1Fail6.86:1AA14.03: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: #f6f6f4;
  --surface: #eeeeed;
  --text: #12100f;
  --primary: #be185d;
  --primary-foreground: #f6f6f4;
  --accent: #fbcfe8;
  --accent-foreground: #12100f;
}

.dark {
  --background: #0f0d0a;
  --surface: #1a1611;
  --text: #ebe3da;
  --primary: #ff6294;
  --primary-foreground: #0f0d0a;
  --accent: #fbcfe8;
  --accent-foreground: #0f0d0a;
}

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: #f6f6f4;
  --surface: #eeeeed;
  --text: #12100f;
  --primary: #be185d;
  --primary-foreground: #f6f6f4;
  --accent: #fbcfe8;
  --accent-foreground: #12100f;
}

.dark {
  color-scheme: dark;
  --background: #0f0d0a;
  --surface: #1a1611;
  --text: #ebe3da;
  --primary: #ff6294;
  --primary-foreground: #0f0d0a;
  --accent: #fbcfe8;
  --accent-foreground: #0f0d0a;
}

@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 Midnight Orchid, which shares the Creative topic: text reaches 17.53:1 in light mode against 13.15:1, the primary is pink where Midnight Orchid's is purple, and both use a pink accent.
  • Compared with Candy Shop, which shares the pastel style: text reaches 17.53:1 in light mode against 14.59:1, both use a pink primary, and the accent is pink where Candy Shop's is teal.