Palette Library

Garden Party

A playful palette for ecommerce with a green primary and a pink accent. Text reaches 17.64:1 in light mode and 16.90:1 in dark mode.

How to use it

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

  • Light mode: page #faf8f4, cards #eee8de, and text #14120d at 17.64:1; buttons #2b9348 with #14120d labels at 4.78:1; highlights #ff70a6 with #14120d text at 7.23:1.
  • Dark mode: page #0e0e0e, cards #171716, and text #f6efe4 at 16.90:1; buttons #4fb265 with #0e0e0e labels at 7.25:1; highlights #ff70a6 with #0e0e0e text at 7.46:1.
  • Links: #2b9348 reaches 3.68:1 on the light page, and #4fb265 reaches 7.25:1 on the dark page.
  • The accent as text: In light mode, keep #ff70a6 for fills and badges, not text: it reaches only 2.43: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
#faf8f4
#0e0e0e
Surface
#eee8de
#171716
Text
#14120d
#f6efe4
Primary
#2b9348
#4fb265
Primary Foreground
#14120d
#0e0e0e
Accent
#ff70a6
#ff70a6
Accent Foreground
#14120d
#0e0e0e

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.64:1AAArequired15.35:1AAArequired4.78:1AA7.23:1AAA
Primary3.68:1UIrequired3.20:1AA large1.00:1Fail1.51:1Fail
Accent2.43:1Fail2.12:1Fail1.51:1Fail1.00:1Fail
Primary Foreground17.64:1AAA15.35:1AAA4.78:1AArequired7.23:1AAA
Accent Foreground17.64:1AAA15.35:1AAA4.78:1AA7.23:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.90:1AAArequired15.70:1AAArequired2.33:1Fail2.26:1Fail
Primary7.25:1AAArequired6.73:1AA1.00:1Fail1.02:1Fail
Accent7.46:1AAA6.93:1AA1.02:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.07:1Fail7.25:1AAArequired7.46:1AAA
Accent Foreground1.00:1Fail1.07:1Fail7.25:1AAA7.46: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: #faf8f4;
  --surface: #eee8de;
  --text: #14120d;
  --primary: #2b9348;
  --primary-foreground: #14120d;
  --accent: #ff70a6;
  --accent-foreground: #14120d;
}

.dark {
  --background: #0e0e0e;
  --surface: #171716;
  --text: #f6efe4;
  --primary: #4fb265;
  --primary-foreground: #0e0e0e;
  --accent: #ff70a6;
  --accent-foreground: #0e0e0e;
}

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: #faf8f4;
  --surface: #eee8de;
  --text: #14120d;
  --primary: #2b9348;
  --primary-foreground: #14120d;
  --accent: #ff70a6;
  --accent-foreground: #14120d;
}

.dark {
  color-scheme: dark;
  --background: #0e0e0e;
  --surface: #171716;
  --text: #f6efe4;
  --primary: #4fb265;
  --primary-foreground: #0e0e0e;
  --accent: #ff70a6;
  --accent-foreground: #0e0e0e;
}

@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 Lavender Field, which shares the playful style: text reaches 17.64:1 in light mode against 19.07:1, the primary is green where Lavender Field's is purple, and the accent is pink where Lavender Field's is green.
  • Compared with Market Stall, which shares the Ecommerce topic: text reaches 17.64:1 in light mode against 13.29:1, the primary is green where Market Stall's is red, and the accent is pink where Market Stall's is green.