Palette Library

Sea Glass

A pastel palette for travel with a teal primary and a green accent. Text reaches 14.90:1 in light mode and 16.59:1 in dark mode.

How to use it

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

  • Light mode: page #f7f5f4, cards #efe6da, and text #24201a at 14.90:1; buttons #2a6f6b with #f7f5f4 labels at 5.39:1; highlights #b9e3c6 with #24201a text at 11.46:1.
  • Dark mode: page #131212, cards #221c14, and text #faf0e3 at 16.59:1; buttons #70b3ae with #131212 labels at 7.79:1; highlights #b9e3c6 with #131212 text at 13.23:1.
  • Links: #2a6f6b reaches 5.39:1 on the light page, and #70b3ae reaches 7.79:1 on the dark page.
  • The accent as text: In light mode, keep #b9e3c6 for fills and badges, not text: it reaches only 1.29: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
#f7f5f4
#131212
Surface
#efe6da
#221c14
Text
#24201a
#faf0e3
Primary
#2a6f6b
#70b3ae
Primary Foreground
#f7f5f4
#131212
Accent
#b9e3c6
#b9e3c6
Accent Foreground
#24201a
#131212

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
Text14.90:1AAArequired13.11:1AAArequired2.76:1Fail11.46:1AAA
Primary5.39:1AArequired4.74:1AA1.00:1Fail4.14:1AA large
Accent1.29:1Fail1.14:1Fail4.14:1AA large1.00:1Fail
Primary Foreground1.00:1Fail1.13:1Fail5.39:1AArequired1.29:1Fail
Accent Foreground14.90:1AAA13.11:1AAA2.76:1Fail11.46:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.59:1AAArequired14.97:1AAArequired2.13:1Fail1.25:1Fail
Primary7.79:1AAArequired7.03:1AAA1.00:1Fail1.69:1Fail
Accent13.23:1AAA11.94:1AAA1.69:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.10:1Fail7.79:1AAArequired13.23:1AAA
Accent Foreground1.00:1Fail1.10:1Fail7.79:1AAA13.23: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: #f7f5f4;
  --surface: #efe6da;
  --text: #24201a;
  --primary: #2a6f6b;
  --primary-foreground: #f7f5f4;
  --accent: #b9e3c6;
  --accent-foreground: #24201a;
}

.dark {
  --background: #131212;
  --surface: #221c14;
  --text: #faf0e3;
  --primary: #70b3ae;
  --primary-foreground: #131212;
  --accent: #b9e3c6;
  --accent-foreground: #131212;
}

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: #f7f5f4;
  --surface: #efe6da;
  --text: #24201a;
  --primary: #2a6f6b;
  --primary-foreground: #f7f5f4;
  --accent: #b9e3c6;
  --accent-foreground: #24201a;
}

.dark {
  color-scheme: dark;
  --background: #131212;
  --surface: #221c14;
  --text: #faf0e3;
  --primary: #70b3ae;
  --primary-foreground: #131212;
  --accent: #b9e3c6;
  --accent-foreground: #131212;
}

@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 Travel topic: text reaches 14.90:1 in light mode against 13.16:1, the primary is teal where Coral Reef's is red, and the accent is green where Coral Reef's is teal.
  • Compared with Pastel Planner, which shares the pastel style: text reaches 14.90:1 in light mode against 18.74:1, the primary is teal where Pastel Planner's is purple, and both use a green accent.