Palette Library

Lagoon

A vibrant palette for travel with a teal primary and a pink accent. Text reaches 17.24:1 in light mode and 17.29:1 in dark mode.

How to use it

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

  • Light mode: page #fafdff, cards #eef4f9, and text #0f1a23 at 17.24:1; buttons #0d9488 with #0f1a23 labels at 4.70:1; highlights #f472b6 with #0f1a23 text at 6.64:1.
  • Dark mode: page #090b0d, cards #161819, and text #eaf1f7 at 17.29:1; buttons #38ada0 with #090b0d labels at 7.18:1; highlights #f472b6 with #090b0d text at 7.44:1.
  • Links: #0d9488 reaches 3.66:1 on the light page, and #38ada0 reaches 7.18:1 on the dark page.
  • The accent as text: In light mode, keep #f472b6 for fills and badges, not text: it reaches only 2.59: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
#fafdff
#090b0d
Surface
#eef4f9
#161819
Text
#0f1a23
#eaf1f7
Primary
#0d9488
#38ada0
Primary Foreground
#0f1a23
#090b0d
Accent
#f472b6
#f472b6
Accent Foreground
#0f1a23
#090b0d

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.24:1AAArequired15.88:1AAArequired4.70:1AA6.64:1AA
Primary3.66:1UIrequired3.37:1AA large1.00:1Fail1.41:1Fail
Accent2.59:1Fail2.38:1Fail1.41:1Fail1.00:1Fail
Primary Foreground17.24:1AAA15.88:1AAA4.70:1AArequired6.64:1AA
Accent Foreground17.24:1AAA15.88:1AAA4.70:1AA6.64:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text17.29:1AAArequired15.62:1AAArequired2.40:1Fail2.32:1Fail
Primary7.18:1AAArequired6.49:1AA1.00:1Fail1.03:1Fail
Accent7.44:1AAA6.72:1AA1.03:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.10:1Fail7.18:1AAArequired7.44:1AAA
Accent Foreground1.00:1Fail1.10:1Fail7.18:1AAA7.44: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: #fafdff;
  --surface: #eef4f9;
  --text: #0f1a23;
  --primary: #0d9488;
  --primary-foreground: #0f1a23;
  --accent: #f472b6;
  --accent-foreground: #0f1a23;
}

.dark {
  --background: #090b0d;
  --surface: #161819;
  --text: #eaf1f7;
  --primary: #38ada0;
  --primary-foreground: #090b0d;
  --accent: #f472b6;
  --accent-foreground: #090b0d;
}

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: #fafdff;
  --surface: #eef4f9;
  --text: #0f1a23;
  --primary: #0d9488;
  --primary-foreground: #0f1a23;
  --accent: #f472b6;
  --accent-foreground: #0f1a23;
}

.dark {
  color-scheme: dark;
  --background: #090b0d;
  --surface: #161819;
  --text: #eaf1f7;
  --primary: #38ada0;
  --primary-foreground: #090b0d;
  --accent: #f472b6;
  --accent-foreground: #090b0d;
}

@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 Coral Reef, which shares the vibrant style: text reaches 17.24:1 in light mode against 13.16:1, the primary is teal where Coral Reef's is red, and the accent is pink where Coral Reef's is teal.
  • Compared with Neon District, which shares the vibrant style: text reaches 17.24:1 in light mode against 11.97:1, the primary is teal where Neon District's is pink, and the accent is pink where Neon District's is teal.