Palette Library

Olive Grove

An earthy palette for food with a green primary and an orange accent. Text reaches 17.63:1 in light mode and 16.03:1 in dark mode.

How to use it

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

  • Light mode: page #fffdfa, cards #f7f1ea, and text #1d160d at 17.63:1; buttons #4d6b1f with #fffdfa labels at 6.01:1; highlights #c2703d with #1d160d text at 4.84:1.
  • Dark mode: page #1a140d, cards #27221d, and text #fceedf at 16.03:1; buttons #92b368 with #1a140d labels at 7.71:1; highlights #d07d4a with #1a140d text at 5.83:1.
  • Links: #4d6b1f reaches 6.01:1 on the light page, and #92b368 reaches 7.71:1 on the dark page.
  • The accent as text: In light mode, keep #c2703d for fills and badges, not text: it reaches only 3.64: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
#fffdfa
#1a140d
Surface
#f7f1ea
#27221d
Text
#1d160d
#fceedf
Primary
#4d6b1f
#92b368
Primary Foreground
#fffdfa
#1a140d
Accent
#c2703d
#d07d4a
Accent Foreground
#1d160d
#1a140d

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.63:1AAArequired15.96:1AAArequired2.93:1Fail4.84:1AA
Primary6.01:1AArequired5.44:1AA1.00:1Fail1.65:1Fail
Accent3.64:1AA large3.29:1AA large1.65:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.10:1Fail6.01:1AArequired3.64:1AA large
Accent Foreground17.63:1AAA15.96:1AAA2.93:1Fail4.84:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.03:1AAArequired13.83:1AAArequired2.07:1Fail2.74:1Fail
Primary7.71:1AAArequired6.65:1AA1.00:1Fail1.32:1Fail
Accent5.83:1AA5.03:1AA1.32:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.15:1Fail7.71:1AAArequired5.83:1AA
Accent Foreground1.00:1Fail1.15:1Fail7.71:1AAA5.83: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: #fffdfa;
  --surface: #f7f1ea;
  --text: #1d160d;
  --primary: #4d6b1f;
  --primary-foreground: #fffdfa;
  --accent: #c2703d;
  --accent-foreground: #1d160d;
}

.dark {
  --background: #1a140d;
  --surface: #27221d;
  --text: #fceedf;
  --primary: #92b368;
  --primary-foreground: #1a140d;
  --accent: #d07d4a;
  --accent-foreground: #1a140d;
}

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: #fffdfa;
  --surface: #f7f1ea;
  --text: #1d160d;
  --primary: #4d6b1f;
  --primary-foreground: #fffdfa;
  --accent: #c2703d;
  --accent-foreground: #1d160d;
}

.dark {
  color-scheme: dark;
  --background: #1a140d;
  --surface: #27221d;
  --text: #fceedf;
  --primary: #92b368;
  --primary-foreground: #1a140d;
  --accent: #d07d4a;
  --accent-foreground: #1a140d;
}

@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 Forest Trail, which shares the earthy style: text reaches 17.63:1 in light mode against 12.35:1, both use a green primary, and both use a orange accent.
  • Compared with Harvest Table, which shares the earthy style: text reaches 17.63:1 in light mode against 17.02:1, the primary is green where Harvest Table's is orange, and the accent is orange where Harvest Table's is brown.