Palette Library

Plum Press

An elegant palette for education with a purple primary and a yellow accent. Text reaches 17.36:1 in light mode and 14.75:1 in dark mode.

How to use it

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

  • Light mode: page #f9f6f3, cards #eee7e0, and text #1b1005 at 17.36:1; buttons #5b2a86 with #f9f6f3 labels at 9.19:1; highlights #e0a458 with #1b1005 text at 8.56:1.
  • Dark mode: page #120d08, cards #1d1c1b, and text #e5e0dd at 14.75:1; buttons #c797fc with #120d08 labels at 8.52:1; highlights #e0a458 with #120d08 text at 8.85:1.
  • Links: #5b2a86 reaches 9.19:1 on the light page, and #c797fc reaches 8.52:1 on the dark page.
  • The accent as text: In light mode, keep #e0a458 for fills and badges, not text: it reaches only 2.02: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
#f9f6f3
#120d08
Surface
#eee7e0
#1d1c1b
Text
#1b1005
#e5e0dd
Primary
#5b2a86
#c797fc
Primary Foreground
#f9f6f3
#120d08
Accent
#e0a458
#e0a458
Accent Foreground
#1b1005
#120d08

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.36:1AAArequired15.26:1AAArequired1.88:1Fail8.56:1AAA
Primary9.19:1AAArequired8.08:1AAA1.00:1Fail4.53:1AA
Accent2.02:1Fail1.78:1Fail4.53:1AA1.00:1Fail
Primary Foreground1.00:1Fail1.13:1Fail9.19:1AAArequired2.02:1Fail
Accent Foreground17.36:1AAA15.26:1AAA1.88:1Fail8.56:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text14.75:1AAArequired12.99:1AAArequired1.73:1Fail1.66:1Fail
Primary8.52:1AAArequired7.50:1AAA1.00:1Fail1.03:1Fail
Accent8.85:1AAA7.79:1AAA1.03:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.13:1Fail8.52:1AAArequired8.85:1AAA
Accent Foreground1.00:1Fail1.13:1Fail8.52:1AAA8.85: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: #f9f6f3;
  --surface: #eee7e0;
  --text: #1b1005;
  --primary: #5b2a86;
  --primary-foreground: #f9f6f3;
  --accent: #e0a458;
  --accent-foreground: #1b1005;
}

.dark {
  --background: #120d08;
  --surface: #1d1c1b;
  --text: #e5e0dd;
  --primary: #c797fc;
  --primary-foreground: #120d08;
  --accent: #e0a458;
  --accent-foreground: #120d08;
}

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: #f9f6f3;
  --surface: #eee7e0;
  --text: #1b1005;
  --primary: #5b2a86;
  --primary-foreground: #f9f6f3;
  --accent: #e0a458;
  --accent-foreground: #1b1005;
}

.dark {
  color-scheme: dark;
  --background: #120d08;
  --surface: #1d1c1b;
  --text: #e5e0dd;
  --primary: #c797fc;
  --primary-foreground: #120d08;
  --accent: #e0a458;
  --accent-foreground: #120d08;
}

@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 Royal Reserve, which shares the elegant style: text reaches 17.36:1 in light mode against 16.56:1, both use a purple primary, and both use a yellow accent.
  • Compared with Ivy League, which shares the elegant style: text reaches 17.36:1 in light mode against 13.94:1, the primary is purple where Ivy League's is teal, and both use a yellow accent.