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.
NewExplore 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.
NewExplore your palette →
Roles
Five roles and their two foregrounds. Copy the exact HEX values.
| Role | Light | Dark |
|---|---|---|
| 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.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 14.97:1AAArequired | 12.97:1AAArequired | 2.33:1Fail | 11.30:1AAA |
| Primary | 6.41:1AArequired | 5.55:1AA | 1.00:1Fail | 4.84:1AA |
| Accent | 1.32:1Fail | 1.14:1Fail | 4.84:1AA | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.15:1Fail | 6.41:1AArequired | 1.32:1Fail |
| Accent Foreground | 14.97:1AAA | 12.97:1AAA | 2.33:1Fail | 11.30:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 16.34:1AAArequired | 14.37:1AAArequired | 2.19:1Fail | 1.16:1Fail |
| Primary | 7.44:1AAArequired | 6.55:1AA | 1.00:1Fail | 1.88:1Fail |
| Accent | 13.99:1AAA | 12.31:1AAA | 1.88:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.13:1Fail | 7.44:1AAArequired | 13.99:1AAA |
| Accent Foreground | 1.00:1Fail | 1.13:1Fail | 7.44:1AAA | 13.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.