Palette Library

Orchard

A playful palette for food with a green primary and a red accent. Text reaches 15.18:1 in light mode and 16.68:1 in dark mode.

How to use it

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

  • Light mode: page #fefeff, cards #f1f6fd, and text #1d2630 at 15.18:1; buttons #3f7d20 with #fefeff labels at 5.00:1; highlights #e4572e with #000000 text at 5.70:1.
  • Dark mode: page #04080f, cards #141415, and text #e3ebf5 at 16.68:1; buttons #75b55a with #04080f labels at 8.13:1; highlights #ee6038 with #04080f text at 6.08:1.
  • Links: #3f7d20 reaches 5.00:1 on the light page, and #75b55a reaches 8.13:1 on the dark page.
  • The accent as text: In light mode, keep #e4572e for fills and badges, not text: it reaches only 3.65: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
#fefeff
#04080f
Surface
#f1f6fd
#141415
Text
#1d2630
#e3ebf5
Primary
#3f7d20
#75b55a
Primary Foreground
#fefeff
#04080f
Accent
#e4572e
#ee6038
Accent Foreground
#000000
#04080f

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
Text15.18:1AAArequired14.09:1AAArequired3.03:1AA large4.15:1AA large
Primary5.00:1AArequired4.64:1AA1.00:1Fail1.36:1Fail
Accent3.65:1AA large3.39:1AA large1.36:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.07:1Fail5.00:1AArequired3.65:1AA large
Accent Foreground20.83:1AAA19.34:1AAA4.16:1AA large5.70:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.68:1AAArequired15.31:1AAArequired2.05:1Fail2.74:1Fail
Primary8.13:1AAArequired7.46:1AAA1.00:1Fail1.33:1Fail
Accent6.08:1AA5.58:1AA1.33:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.08:1Fail8.13:1AAArequired6.08:1AA
Accent Foreground1.00:1Fail1.08:1Fail8.13:1AAA6.08:1AArequired

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: #fefeff;
  --surface: #f1f6fd;
  --text: #1d2630;
  --primary: #3f7d20;
  --primary-foreground: #fefeff;
  --accent: #e4572e;
  --accent-foreground: #000000;
}

.dark {
  --background: #04080f;
  --surface: #141415;
  --text: #e3ebf5;
  --primary: #75b55a;
  --primary-foreground: #04080f;
  --accent: #ee6038;
  --accent-foreground: #04080f;
}

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: #fefeff;
  --surface: #f1f6fd;
  --text: #1d2630;
  --primary: #3f7d20;
  --primary-foreground: #fefeff;
  --accent: #e4572e;
  --accent-foreground: #000000;
}

.dark {
  color-scheme: dark;
  --background: #04080f;
  --surface: #141415;
  --text: #e3ebf5;
  --primary: #75b55a;
  --primary-foreground: #04080f;
  --accent: #ee6038;
  --accent-foreground: #04080f;
}

@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 15.18:1 in light mode against 15.28:1, the primary is green where Sunrise Cafe's is red, and the accent is red where Sunrise Cafe's is yellow.
  • Compared with Tropical Punch, which shares the Food topic: text reaches 15.18:1 in light mode against 15.52:1, the primary is green where Tropical Punch's is red, and the accent is red where Tropical Punch's is green.