A five-color palette
Lavender: a lavender, plum gray and lilac color palette
Lavender and a gray plum with a dark aubergine, a soft lilac and a pale violet white. Its hex codes are #9b85bb, #584a6a, #201a27, #d1c3e3, #e9dcff. Open it in Recolor (recolor.page) to see it on a real web page, or copy the code below.
Last updated
| Hex | Nearest CSS name | OKLCH | Black text, AA | White text, AA |
|---|---|---|---|---|
#9b85bb | Light Slate Grey (lightslategrey) | oklch(65.6% 0.082 302.9) | 6.47:1 passes | 3.25:1 fails |
#584a6a | Dark Slate Blue (darkslateblue) | oklch(43.6% 0.054 304.2) | 2.60:1 fails | 8.07:1 passes |
#201a27 | Midnight Blue (midnightblue) | oklch(23.1% 0.026 305.5) | 1.24:1 fails | 16.96:1 passes |
#d1c3e3 | Thistle (thistle) | oklch(83.9% 0.046 305.2) | 12.63:1 passes | 1.66:1 fails |
#e9dcff | Lavender (lavender) | oklch(91.6% 0.049 302.3) | 16.15:1 passes | 1.30:1 fails |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #e9dcff, the lightest of the five, takes the background and #201a27, the darkest, the text, and the page's other greys keep their place between the two; on a dark page the two swap. The other three take the page's colors in their order: the first of them its heaviest brand color, the next the one after. Reorder the swatches and the page reorders with them; mapping explains it, and the Tint choice that keeps a page's greys as they were. To keep text readable, the table above says whether black or white text reaches the WCAG AA ratio of 4.5:1 on each color.
The code below is what Recolor's own Export panel writes for this palette. The Tailwind block is a Tailwind v4 @theme block, and the Coolors link opens the same colors there. To see the palette on your own site first, follow previewing a palette on a real website.
The palette as code
CSS variables
:root {
--color-1: #9b85bb;
--color-2: #584a6a;
--color-3: #201a27;
--color-4: #d1c3e3;
--color-5: #e9dcff;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #9b85bb;
--color-2: #584a6a;
--color-3: #201a27;
--color-4: #d1c3e3;
--color-5: #e9dcff;
--color-primary: #9b85bb;
--color-secondary: #584a6a;
--color-accent: #201a27;
}SCSS variables
$color-1: #9b85bb;
$color-2: #584a6a;
$color-3: #201a27;
$color-4: #d1c3e3;
$color-5: #e9dcff;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#9b85bb",
"#584a6a",
"#201a27",
"#d1c3e3",
"#e9dcff"
]
}Hex list
#9b85bb
#584a6a
#201a27
#d1c3e3
#e9dcffCoolors link
https://coolors.co/9b85bb-584a6a-201a27-d1c3e3-e9dcff