Lavender Color Palette
Lavender Color Palette built around #B39DDB, a dark cool purple anchor (WCAG contrast 8.76:1 against black). The set combines a light tint + a deep shade + a softened complement + a neutral ground so any palette position has a text-safe pairing.
Semantic roles
Assigned deterministically: lightest = background, darkest = text, most saturated = primary.
| background | #E5DAF8 | |
| surface | #C1CDAB | |
| text | #5C4E77 | |
| text-muted | #B39DDB | |
| primary | #B39DDB | |
| secondary | #C1CDAB | |
| accent | #BBA6DF |
CSS variables
:root {
--background: #e5daf8;
--surface: #c1cdab;
--text: #5c4e77;
--text-muted: #b39ddb;
--primary: #b39ddb;
--secondary: #c1cdab;
--accent: #bba6df;
}Accessibility matrix
Text color (rows) on background (columns). Green = WCAG AA pass for normal text (≥4.5:1).
| Text \ BG | #B39DDB | #E5DAF8 | #5C4E77 | #C1CDAB | #BBA6DF |
|---|---|---|---|---|---|
| #B39DDB | 1.0 | 1.8 | 3.1 | 1.4 | 1.1 |
| #E5DAF8 | 1.8 | 1.0 | 5.6 | 1.3 | 1.6 |
| #5C4E77 | 3.1 | 5.6 | 1.0 | 4.5 | 3.4 |
| #C1CDAB | 1.4 | 1.3 | 4.5 | 1.0 | 1.3 |
| #BBA6DF | 1.1 | 1.6 | 3.4 | 1.3 | 1.0 |
Under deuteranopia
Machado et al. (2009) simulation, severity 1.0 — approximation, not a medical tool.
Colors in this palette
Similar palettes
FAQ
How do I use the lavender color palette in CSS?
Copy the CSS variables below into :root and use var(--primary), var(--background) etc. Full palette: #B39DDB, #E5DAF8, #5C4E77, #C1CDAB, #BBA6DF.
Do these colors pass accessibility checks?
See the WCAG matrix on this page: every text-on-background pairing with ratio ≥ 4.5 passes AA for normal text; ≥ 3 passes AA for large text and UI components.