Palette Library

Coral Reef

A vibrant palette for travel with a red primary and a teal accent. Text reaches 13.16:1 in light mode and 14.19:1 in dark mode.

How to use it

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

  • Light mode: page #fdfcfa, cards #f3f2f0, and text #312e2b at 13.16:1; buttons #e11d48 with #ffffff labels at 4.69:1; highlights #06b6d4 with #312e2b text at 5.55:1.
  • Dark mode: page #1b1917, cards #25211c, and text #efe6db at 14.19:1; buttons #ff5569 with #1b1917 labels at 5.63:1; highlights #06b6d4 with #1b1917 text at 7.21:1.
  • Links: #e11d48 reaches 4.58:1 on the light page, and #ff5569 reaches 5.63:1 on the dark page.
  • The accent as text: In light mode, keep #06b6d4 for fills and badges, not text: it reaches only 2.36: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
#fdfcfa
#1b1917
Surface
#f3f2f0
#25211c
Text
#312e2b
#efe6db
Primary
#e11d48
#ff5569
Primary Foreground
#ffffff
#1b1917
Accent
#06b6d4
#06b6d4
Accent Foreground
#312e2b
#1b1917

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
Text13.16:1AAArequired12.06:1AAArequired2.87:1Fail5.55:1AA
Primary4.58:1AArequired4.19:1AA large1.00:1Fail1.93:1Fail
Accent2.36:1Fail2.17:1Fail1.93:1Fail1.00:1Fail
Primary Foreground1.02:1Fail1.11:1Fail4.69:1AArequired2.42:1Fail
Accent Foreground13.16:1AAA12.06:1AAA2.87:1Fail5.55:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text14.19:1AAArequired12.95:1AAArequired2.51:1Fail1.96:1Fail
Primary5.63:1AArequired5.14:1AA1.00:1Fail1.28:1Fail
Accent7.21:1AAA6.58:1AA1.28:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.09:1Fail5.63:1AArequired7.21:1AAA
Accent Foreground1.00:1Fail1.09:1Fail5.63:1AA7.21: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: #fdfcfa;
  --surface: #f3f2f0;
  --text: #312e2b;
  --primary: #e11d48;
  --primary-foreground: #ffffff;
  --accent: #06b6d4;
  --accent-foreground: #312e2b;
}

.dark {
  --background: #1b1917;
  --surface: #25211c;
  --text: #efe6db;
  --primary: #ff5569;
  --primary-foreground: #1b1917;
  --accent: #06b6d4;
  --accent-foreground: #1b1917;
}

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: #fdfcfa;
  --surface: #f3f2f0;
  --text: #312e2b;
  --primary: #e11d48;
  --primary-foreground: #ffffff;
  --accent: #06b6d4;
  --accent-foreground: #312e2b;
}

.dark {
  color-scheme: dark;
  --background: #1b1917;
  --surface: #25211c;
  --text: #efe6db;
  --primary: #ff5569;
  --primary-foreground: #1b1917;
  --accent: #06b6d4;
  --accent-foreground: #1b1917;
}

@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 Lagoon, which shares the vibrant style: text reaches 13.16:1 in light mode against 17.24:1, the primary is red where Lagoon's is teal, and the accent is teal where Lagoon's is pink.
  • Compared with Postcard, which shares the Travel topic: text reaches 13.16:1 in light mode against 13.58:1, both use a red primary, and both use a teal accent.