Palette Library

Lighthouse

A bold palette for travel with a red primary and a blue accent. Text reaches 16.48:1 in light mode and 14.90:1 in dark mode.

How to use it

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

  • Light mode: page #fffaf9, cards #fcedeb, and text #251918 at 16.48:1; buttons #c92a2a with #fffaf9 labels at 5.27:1; highlights #1c7ed6 with #000000 text at 5.00:1.
  • Dark mode: page #110706, cards #1e1615, and text #f1dad7 at 14.90:1; buttons #ff655b with #110706 labels at 6.87:1; highlights #439ef8 with #110706 text at 7.08:1.
  • Links: #c92a2a reaches 5.27:1 on the light page, and #ff655b reaches 6.87:1 on the dark page.
  • The accent as text: In light mode, keep #1c7ed6 for fills and badges, not text: it reaches only 4.05: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
#fffaf9
#110706
Surface
#fcedeb
#1e1615
Text
#251918
#f1dad7
Primary
#c92a2a
#ff655b
Primary Foreground
#fffaf9
#110706
Accent
#1c7ed6
#439ef8
Accent Foreground
#000000
#110706

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
Text16.48:1AAArequired14.99:1AAArequired3.12:1AA large4.06:1AA large
Primary5.27:1AArequired4.79:1AA1.00:1Fail1.30:1Fail
Accent4.05:1AA large3.68:1AA large1.30:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.09:1Fail5.27:1AArequired4.05:1AA large
Accent Foreground20.29:1AAA18.45:1AAA3.84:1AA large5.00:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text14.90:1AAArequired13.33:1AAArequired2.16:1Fail2.10:1Fail
Primary6.87:1AArequired6.15:1AA1.00:1Fail1.03:1Fail
Accent7.08:1AAA6.33:1AA1.03:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.11:1Fail6.87:1AArequired7.08:1AAA
Accent Foreground1.00:1Fail1.11:1Fail6.87:1AA7.08: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: #fffaf9;
  --surface: #fcedeb;
  --text: #251918;
  --primary: #c92a2a;
  --primary-foreground: #fffaf9;
  --accent: #1c7ed6;
  --accent-foreground: #000000;
}

.dark {
  --background: #110706;
  --surface: #1e1615;
  --text: #f1dad7;
  --primary: #ff655b;
  --primary-foreground: #110706;
  --accent: #439ef8;
  --accent-foreground: #110706;
}

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: #fffaf9;
  --surface: #fcedeb;
  --text: #251918;
  --primary: #c92a2a;
  --primary-foreground: #fffaf9;
  --accent: #1c7ed6;
  --accent-foreground: #000000;
}

.dark {
  color-scheme: dark;
  --background: #110706;
  --surface: #1e1615;
  --text: #f1dad7;
  --primary: #ff655b;
  --primary-foreground: #110706;
  --accent: #439ef8;
  --accent-foreground: #110706;
}

@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 First Aid, which shares the bold style: text reaches 16.48:1 in light mode against 18.58:1, both use a red primary, and both use a blue accent.
  • Compared with Bauhaus, which shares the bold style: text reaches 16.48:1 in light mode against 16.88:1, the primary is red where Bauhaus's is blue, and the accent is blue where Bauhaus's is red.