Palette Library

Kelp Forest

A calm palette for nature with a green primary and a blue accent. Text reaches 19.15:1 in light mode and 15.07:1 in dark mode.

How to use it

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

  • Light mode: page #fefdfd, cards #f8f3ed, and text #110c07 at 19.15:1; buttons #2b5d34 with #fefdfd labels at 7.60:1; highlights #5fa8d3 with #110c07 text at 7.43:1.
  • Dark mode: page #0d0b09, cards #151312, and text #efdfce at 15.07:1; buttons #88bc8e with #0d0b09 labels at 9.00:1; highlights #5fa8d3 with #0d0b09 text at 7.51:1.
  • Links: #2b5d34 reaches 7.60:1 on the light page, and #88bc8e reaches 9.00:1 on the dark page.
  • The accent as text: In light mode, keep #5fa8d3 for fills and badges, not text: it reaches only 2.57: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
#fefdfd
#0d0b09
Surface
#f8f3ed
#151312
Text
#110c07
#efdfce
Primary
#2b5d34
#88bc8e
Primary Foreground
#fefdfd
#0d0b09
Accent
#5fa8d3
#5fa8d3
Accent Foreground
#110c07
#0d0b09

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
Text19.15:1AAArequired17.63:1AAArequired2.51:1Fail7.43:1AAA
Primary7.60:1AAArequired7.00:1AAA1.00:1Fail2.95:1Fail
Accent2.57:1Fail2.37:1Fail2.95:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.08:1Fail7.60:1AAArequired2.57:1Fail
Accent Foreground19.15:1AAA17.63:1AAA2.51:1Fail7.43:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text15.07:1AAArequired14.21:1AAArequired1.67:1Fail2.00:1Fail
Primary9.00:1AAArequired8.49:1AAA1.00:1Fail1.19:1Fail
Accent7.51:1AAA7.08:1AAA1.19:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.06:1Fail9.00:1AAArequired7.51:1AAA
Accent Foreground1.00:1Fail1.06:1Fail9.00:1AAA7.51: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: #fefdfd;
  --surface: #f8f3ed;
  --text: #110c07;
  --primary: #2b5d34;
  --primary-foreground: #fefdfd;
  --accent: #5fa8d3;
  --accent-foreground: #110c07;
}

.dark {
  --background: #0d0b09;
  --surface: #151312;
  --text: #efdfce;
  --primary: #88bc8e;
  --primary-foreground: #0d0b09;
  --accent: #5fa8d3;
  --accent-foreground: #0d0b09;
}

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: #fefdfd;
  --surface: #f8f3ed;
  --text: #110c07;
  --primary: #2b5d34;
  --primary-foreground: #fefdfd;
  --accent: #5fa8d3;
  --accent-foreground: #110c07;
}

.dark {
  color-scheme: dark;
  --background: #0d0b09;
  --surface: #151312;
  --text: #efdfce;
  --primary: #88bc8e;
  --primary-foreground: #0d0b09;
  --accent: #5fa8d3;
  --accent-foreground: #0d0b09;
}

@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 Steady Ledger, which shares the calm style: text reaches 19.15:1 in light mode against 16.94:1, both use a green primary, and both use a blue accent.
  • Compared with Evergreen, which shares the calm style: text reaches 19.15:1 in light mode against 13.56:1, both use a green primary, and the accent is blue where Evergreen's is green.