Palette Library
Lavender Field
A playful palette for creative with a purple primary and a green accent. Text reaches 19.07:1 in light mode and 17.58:1 in dark mode.
How to use it
Lavender Field's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fffbf8, cards #f6f2ed, and text #0e0b08 at 19.07:1; buttons #7c3aed with #fffbf8 labels at 5.53:1; highlights #a3e635 with #0e0b08 text at 13.01:1.
- Dark mode: page #0d0905, cards #181615, and text #fdefe1 at 17.58:1; buttons #a587ff with #0d0905 labels at 7.09:1; highlights #a3e635 with #0d0905 text at 13.15:1.
- Links: #7c3aed reaches 5.53:1 on the light page, and #a587ff reaches 7.09:1 on the dark page.
- The accent as text: In light mode, keep #a3e635 for fills and badges, not text: it reaches only 1.46: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 | #fffbf8 | #0d0905 |
| Surface | #f6f2ed | #181615 |
| Text | #0e0b08 | #fdefe1 |
| Primary | #7c3aed | #a587ff |
| Primary Foreground | #fffbf8 | #0d0905 |
| Accent | #a3e635 | #a3e635 |
| Accent Foreground | #0e0b08 | #0d0905 |
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 | 19.07:1AAArequired | 17.60:1AAArequired | 3.44:1AA large | 13.01:1AAA |
| Primary | 5.53:1AArequired | 5.11:1AA | 1.00:1Fail | 3.77:1AA large |
| Accent | 1.46:1Fail | 1.35:1Fail | 3.77:1AA large | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.08:1Fail | 5.53:1AArequired | 1.46:1Fail |
| Accent Foreground | 19.07:1AAA | 17.60:1AAA | 3.44:1AA large | 13.01:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 17.58:1AAArequired | 15.98:1AAArequired | 2.47:1Fail | 1.33:1Fail |
| Primary | 7.09:1AAArequired | 6.44:1AA | 1.00:1Fail | 1.85:1Fail |
| Accent | 13.15:1AAA | 11.96:1AAA | 1.85:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.10:1Fail | 7.09:1AAArequired | 13.15:1AAA |
| Accent Foreground | 1.00:1Fail | 1.10:1Fail | 7.09:1AAA | 13.15: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: #fffbf8;
--surface: #f6f2ed;
--text: #0e0b08;
--primary: #7c3aed;
--primary-foreground: #fffbf8;
--accent: #a3e635;
--accent-foreground: #0e0b08;
}
.dark {
--background: #0d0905;
--surface: #181615;
--text: #fdefe1;
--primary: #a587ff;
--primary-foreground: #0d0905;
--accent: #a3e635;
--accent-foreground: #0d0905;
}
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: #fffbf8;
--surface: #f6f2ed;
--text: #0e0b08;
--primary: #7c3aed;
--primary-foreground: #fffbf8;
--accent: #a3e635;
--accent-foreground: #0e0b08;
}
.dark {
color-scheme: dark;
--background: #0d0905;
--surface: #181615;
--text: #fdefe1;
--primary: #a587ff;
--primary-foreground: #0d0905;
--accent: #a3e635;
--accent-foreground: #0d0905;
}
@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 Aurora, which shares the Creative topic: text reaches 19.07:1 in light mode against 14.67:1, both use a purple primary, and both use a green accent.
- Compared with Midnight Orchid, which shares the Creative topic: text reaches 19.07:1 in light mode against 13.15:1, both use a purple primary, and the accent is green where Midnight Orchid's is pink.