Palette Library

Rainforest

A vibrant palette for nature with a green primary and an orange accent. Text reaches 15.92:1 in light mode and 17.03:1 in dark mode.

How to use it

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

  • Light mode: page #fffcfa, cards #f7f4f1, and text #21201f at 15.92:1; buttons #2b6a3a with #fffcfa labels at 6.37:1; highlights #e85d04 with #21201f text at 4.64:1.
  • Dark mode: page #100d0b, cards #191817, and text #f7efe9 at 17.03:1; buttons #7aba85 with #100d0b labels at 8.47:1; highlights #ec610f with #100d0b text at 5.79:1.
  • Links: #2b6a3a reaches 6.37:1 on the light page, and #7aba85 reaches 8.47:1 on the dark page.
  • The accent as text: In light mode, keep #e85d04 for fills and badges, not text: it reaches only 3.42: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
#fffcfa
#100d0b
Surface
#f7f4f1
#191817
Text
#21201f
#f7efe9
Primary
#2b6a3a
#7aba85
Primary Foreground
#fffcfa
#100d0b
Accent
#e85d04
#ec610f
Accent Foreground
#21201f
#100d0b

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.92:1AAArequired14.84:1AAArequired2.49:1Fail4.64:1AA
Primary6.37:1AArequired5.94:1AA1.00:1Fail1.85:1Fail
Accent3.42:1AA large3.19:1AA large1.85:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.07:1Fail6.37:1AArequired3.42:1AA large
Accent Foreground15.92:1AAA14.84:1AAA2.49:1Fail4.64:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text17.03:1AAArequired15.60:1AAArequired2.01:1Fail2.94:1Fail
Primary8.47:1AAArequired7.75:1AAA1.00:1Fail1.46:1Fail
Accent5.79:1AA5.30:1AA1.46:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.09:1Fail8.47:1AAArequired5.79:1AA
Accent Foreground1.00:1Fail1.09:1Fail8.47:1AAA5.79: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: #fffcfa;
  --surface: #f7f4f1;
  --text: #21201f;
  --primary: #2b6a3a;
  --primary-foreground: #fffcfa;
  --accent: #e85d04;
  --accent-foreground: #21201f;
}

.dark {
  --background: #100d0b;
  --surface: #191817;
  --text: #f7efe9;
  --primary: #7aba85;
  --primary-foreground: #100d0b;
  --accent: #ec610f;
  --accent-foreground: #100d0b;
}

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: #fffcfa;
  --surface: #f7f4f1;
  --text: #21201f;
  --primary: #2b6a3a;
  --primary-foreground: #fffcfa;
  --accent: #e85d04;
  --accent-foreground: #21201f;
}

.dark {
  color-scheme: dark;
  --background: #100d0b;
  --surface: #191817;
  --text: #f7efe9;
  --primary: #7aba85;
  --primary-foreground: #100d0b;
  --accent: #ec610f;
  --accent-foreground: #100d0b;
}

@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 Nature topic: text reaches 15.92:1 in light mode against 12.35:1, both use a green primary, and both use a orange accent.
  • Compared with Pixel Arcade, which shares the vibrant style: text reaches 15.92:1 in light mode against 15.08:1, the primary is green where Pixel Arcade's is purple, and the accent is orange where Pixel Arcade's is green.