Palette Library

Lilac Letter

A pastel palette for creative with a purple primary and a purple accent. Text reaches 14.97:1 in light mode and 16.34:1 in dark mode.

How to use it

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

  • Light mode: page #fafcff, cards #e7ecf4, and text #1d2533 at 14.97:1; buttons #6d4c9f with #fafcff labels at 6.41:1; highlights #e9d5ff with #1d2533 text at 11.30:1.
  • Dark mode: page #0d1015, cards #191e24, and text #e7eefa at 16.34:1; buttons #b292eb with #0d1015 labels at 7.44:1; highlights #e9d5ff with #0d1015 text at 13.99:1.
  • Links: #6d4c9f reaches 6.41:1 on the light page, and #b292eb reaches 7.44:1 on the dark page.
  • The accent as text: In light mode, keep #e9d5ff for fills and badges, not text: it reaches only 1.32: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
#fafcff
#0d1015
Surface
#e7ecf4
#191e24
Text
#1d2533
#e7eefa
Primary
#6d4c9f
#b292eb
Primary Foreground
#fafcff
#0d1015
Accent
#e9d5ff
#e9d5ff
Accent Foreground
#1d2533
#0d1015

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.97:1AAArequired12.97:1AAArequired2.33:1Fail11.30:1AAA
Primary6.41:1AArequired5.55:1AA1.00:1Fail4.84:1AA
Accent1.32:1Fail1.14:1Fail4.84:1AA1.00:1Fail
Primary Foreground1.00:1Fail1.15:1Fail6.41:1AArequired1.32:1Fail
Accent Foreground14.97:1AAA12.97:1AAA2.33:1Fail11.30:1AAArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text16.34:1AAArequired14.37:1AAArequired2.19:1Fail1.16:1Fail
Primary7.44:1AAArequired6.55:1AA1.00:1Fail1.88:1Fail
Accent13.99:1AAA12.31:1AAA1.88:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.13:1Fail7.44:1AAArequired13.99:1AAA
Accent Foreground1.00:1Fail1.13:1Fail7.44:1AAA13.99: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: #fafcff;
  --surface: #e7ecf4;
  --text: #1d2533;
  --primary: #6d4c9f;
  --primary-foreground: #fafcff;
  --accent: #e9d5ff;
  --accent-foreground: #1d2533;
}

.dark {
  --background: #0d1015;
  --surface: #191e24;
  --text: #e7eefa;
  --primary: #b292eb;
  --primary-foreground: #0d1015;
  --accent: #e9d5ff;
  --accent-foreground: #0d1015;
}

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: #fafcff;
  --surface: #e7ecf4;
  --text: #1d2533;
  --primary: #6d4c9f;
  --primary-foreground: #fafcff;
  --accent: #e9d5ff;
  --accent-foreground: #1d2533;
}

.dark {
  color-scheme: dark;
  --background: #0d1015;
  --surface: #191e24;
  --text: #e7eefa;
  --primary: #b292eb;
  --primary-foreground: #0d1015;
  --accent: #e9d5ff;
  --accent-foreground: #0d1015;
}

@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 the Creative topic: text reaches 14.97:1 in light mode against 13.15:1, both use a purple primary, and the accent is purple where Midnight Orchid's is pink.
  • Compared with Lavender Field, which shares the Creative topic: text reaches 14.97:1 in light mode against 19.07:1, both use a purple primary, and the accent is purple where Lavender Field's is green.