Palette Library
Periwinkle
A calm palette for education with a purple primary and a yellow accent. Text reaches 17.51:1 in light mode and 15.22:1 in dark mode.
How to use it
Periwinkle's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fbfaf9, cards #f4ece0, and text #1b1408 at 17.51:1; buttons #5c62c2 with #fbfaf9 labels at 5.05:1; highlights #ffe066 with #1b1408 text at 14.00:1.
- Dark mode: page #1d170e, cards #272623, and text #efedeb at 15.22:1; buttons #8a95fa with #1d170e labels at 6.56:1; highlights #ffe066 with #1d170e text at 13.63:1.
- Links: #5c62c2 reaches 5.05:1 on the light page, and #8a95fa reaches 6.56:1 on the dark page.
- The accent as text: In light mode, keep #ffe066 for fills and badges, not text: it reaches only 1.25: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 | #fbfaf9 | #1d170e |
| Surface | #f4ece0 | #272623 |
| Text | #1b1408 | #efedeb |
| Primary | #5c62c2 | #8a95fa |
| Primary Foreground | #fbfaf9 | #1d170e |
| Accent | #ffe066 | #ffe066 |
| Accent Foreground | #1b1408 | #1d170e |
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 | 17.51:1AAArequired | 15.58:1AAArequired | 3.46:1AA large | 14.00:1AAA |
| Primary | 5.05:1AArequired | 4.50:1AA | 1.00:1Fail | 4.04:1AA large |
| Accent | 1.25:1Fail | 1.11:1Fail | 4.04:1AA large | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.12:1Fail | 5.05:1AArequired | 1.25:1Fail |
| Accent Foreground | 17.51:1AAA | 15.58:1AAA | 3.46:1AA large | 14.00:1AAArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 15.22:1AAArequired | 12.95:1AAArequired | 2.31:1Fail | 1.11:1Fail |
| Primary | 6.56:1AArequired | 5.59:1AA | 1.00:1Fail | 2.07:1Fail |
| Accent | 13.63:1AAA | 11.60:1AAA | 2.07:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.17:1Fail | 6.56:1AArequired | 13.63:1AAA |
| Accent Foreground | 1.00:1Fail | 1.17:1Fail | 6.56:1AA | 13.63: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: #fbfaf9;
--surface: #f4ece0;
--text: #1b1408;
--primary: #5c62c2;
--primary-foreground: #fbfaf9;
--accent: #ffe066;
--accent-foreground: #1b1408;
}
.dark {
--background: #1d170e;
--surface: #272623;
--text: #efedeb;
--primary: #8a95fa;
--primary-foreground: #1d170e;
--accent: #ffe066;
--accent-foreground: #1d170e;
}
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: #fbfaf9;
--surface: #f4ece0;
--text: #1b1408;
--primary: #5c62c2;
--primary-foreground: #fbfaf9;
--accent: #ffe066;
--accent-foreground: #1b1408;
}
.dark {
color-scheme: dark;
--background: #1d170e;
--surface: #272623;
--text: #efedeb;
--primary: #8a95fa;
--primary-foreground: #1d170e;
--accent: #ffe066;
--accent-foreground: #1d170e;
}
@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 Plum Press, which shares the Education topic: text reaches 17.51:1 in light mode against 17.36:1, both use a purple primary, and both use a yellow accent.
- Compared with Atlas, which shares the calm style: text reaches 17.51:1 in light mode against 12.60:1, the primary is purple where Atlas's is blue, and both use a yellow accent.