Palette Library

Wildflower

A playful palette for nature with a purple primary and a yellow accent. Text reaches 17.01:1 in light mode and 15.79:1 in dark mode.

How to use it

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

  • Light mode: page #fffbf6, cards #f4ece2, and text #1b1917 at 17.01:1; buttons #8e44ad with #fffbf6 labels at 5.69:1; highlights #f1c40f with #1b1917 text at 10.55:1.
  • Dark mode: page #19130c, cards #211b15, and text #fbebda at 15.79:1; buttons #c87dea with #19130c labels at 6.64:1; highlights #f1c40f with #19130c text at 11.09:1.
  • Links: #8e44ad reaches 5.69:1 on the light page, and #c87dea reaches 6.64:1 on the dark page.
  • The accent as text: In light mode, keep #f1c40f for fills and badges, not text: it reaches only 1.61: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
#fffbf6
#19130c
Surface
#f4ece2
#211b15
Text
#1b1917
#fbebda
Primary
#8e44ad
#c87dea
Primary Foreground
#fffbf6
#19130c
Accent
#f1c40f
#f1c40f
Accent Foreground
#1b1917
#19130c

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.01:1AAArequired14.97:1AAArequired2.98:1Fail10.55:1AAA
Primary5.69:1AArequired5.01:1AA1.00:1Fail3.53:1AA large
Accent1.61:1Fail1.41:1Fail3.53:1AA large1.00:1Fail
Primary Foreground1.00:1Fail1.13:1Fail5.69:1AArequired1.61:1Fail
Accent Foreground17.01:1AAA14.97:1AAA2.98:1Fail10.55:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text15.79:1AAArequired14.60:1AAArequired2.37:1Fail1.42:1Fail
Primary6.64:1AArequired6.14:1AA1.00:1Fail1.66:1Fail
Accent11.09:1AAA10.25:1AAA1.66:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.08:1Fail6.64:1AArequired11.09:1AAA
Accent Foreground1.00:1Fail1.08:1Fail6.64:1AA11.09: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: #fffbf6;
  --surface: #f4ece2;
  --text: #1b1917;
  --primary: #8e44ad;
  --primary-foreground: #fffbf6;
  --accent: #f1c40f;
  --accent-foreground: #1b1917;
}

.dark {
  --background: #19130c;
  --surface: #211b15;
  --text: #fbebda;
  --primary: #c87dea;
  --primary-foreground: #19130c;
  --accent: #f1c40f;
  --accent-foreground: #19130c;
}

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: #fffbf6;
  --surface: #f4ece2;
  --text: #1b1917;
  --primary: #8e44ad;
  --primary-foreground: #fffbf6;
  --accent: #f1c40f;
  --accent-foreground: #1b1917;
}

.dark {
  color-scheme: dark;
  --background: #19130c;
  --surface: #211b15;
  --text: #fbebda;
  --primary: #c87dea;
  --primary-foreground: #19130c;
  --accent: #f1c40f;
  --accent-foreground: #19130c;
}

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