Palette Library

Pulse

A vibrant palette for health with a pink primary and a purple accent. Text reaches 18.03:1 in light mode and 14.87:1 in dark mode.

How to use it

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

  • Light mode: page #faf7f3, cards #f2e7db, and text #140d07 at 18.03:1; buttons #e11d74 with #000000 labels at 4.62:1; highlights #7c3aed with #faf7f3 text at 5.33:1.
  • Dark mode: page #0e0b08, cards #1c1813, and text #e1e0de at 14.87:1; buttons #ff478d with #0e0b08 labels at 6.10:1; highlights #a587ff with #0e0b08 text at 7.01:1.
  • Links: #e11d74 reaches 4.24:1 on the light page, and #ff478d reaches 6.10:1 on the dark page.
  • The accent as text: #7c3aed also works as text: 5.33:1 on the light page and 7.01:1 on the dark 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
#faf7f3
#0e0b08
Surface
#f2e7db
#1c1813
Text
#140d07
#e1e0de
Primary
#e11d74
#ff478d
Primary Foreground
#000000
#0e0b08
Accent
#7c3aed
#a587ff
Accent Foreground
#faf7f3
#0e0b08

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
Text18.03:1AAArequired15.80:1AAArequired4.24:1AA large3.37:1AA large
Primary4.24:1UIrequired3.72:1AA large1.00:1Fail1.25:1Fail
Accent5.33:1AA4.67:1AA1.25:1Fail1.00:1Fail
Primary Foreground19.66:1AAA17.22:1AAA4.62:1AArequired3.68:1AA large
Accent Foreground1.00:1Fail1.14:1Fail4.24:1AA large5.33:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text14.87:1AAArequired13.38:1AAArequired2.43:1Fail2.11:1Fail
Primary6.10:1AArequired5.49:1AA1.00:1Fail1.14:1Fail
Accent7.01:1AAA6.31:1AA1.14:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.11:1Fail6.10:1AArequired7.01:1AAA
Accent Foreground1.00:1Fail1.11:1Fail6.10:1AA7.01: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: #faf7f3;
  --surface: #f2e7db;
  --text: #140d07;
  --primary: #e11d74;
  --primary-foreground: #000000;
  --accent: #7c3aed;
  --accent-foreground: #faf7f3;
}

.dark {
  --background: #0e0b08;
  --surface: #1c1813;
  --text: #e1e0de;
  --primary: #ff478d;
  --primary-foreground: #0e0b08;
  --accent: #a587ff;
  --accent-foreground: #0e0b08;
}

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: #faf7f3;
  --surface: #f2e7db;
  --text: #140d07;
  --primary: #e11d74;
  --primary-foreground: #000000;
  --accent: #7c3aed;
  --accent-foreground: #faf7f3;
}

.dark {
  color-scheme: dark;
  --background: #0e0b08;
  --surface: #1c1813;
  --text: #e1e0de;
  --primary: #ff478d;
  --primary-foreground: #0e0b08;
  --accent: #a587ff;
  --accent-foreground: #0e0b08;
}

@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 Midnight Orchid, which shares a color: text reaches 18.03:1 in light mode against 13.15:1, the primary is pink where Midnight Orchid's is purple, and the accent is purple where Midnight Orchid's is pink.
  • Compared with Pixel Arcade, which shares the vibrant style: text reaches 18.03:1 in light mode against 15.08:1, the primary is pink where Pixel Arcade's is purple, and the accent is purple where Pixel Arcade's is green.