A five-color palette
Dusk: a plum, periwinkle and lilac color palette
Plum and periwinkle with an ink blue, lilac and a pale pink sky. Its hex codes are #664075, #8d8bbf, #1e1a34, #c5a9db, #f8d9f4. 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 |
|---|---|---|---|---|
#664075 | Dark Slate Blue (darkslateblue) | oklch(43.8% 0.095 315.9) | 2.56:1 fails | 8.22:1 passes |
#8d8bbf | Light Slate Grey (lightslategrey) | oklch(65.8% 0.077 285.8) | 6.58:1 passes | 3.19:1 fails |
#1e1a34 | Midnight Blue (midnightblue) | oklch(23.7% 0.049 289.2) | 1.25:1 fails | 16.77:1 passes |
#c5a9db | Plum (plum) | oklch(77.6% 0.076 309.9) | 10.07:1 passes | 2.08:1 fails |
#f8d9f4 | Lavender (lavender) | oklch(91.9% 0.049 330.2) | 16.22:1 passes | 1.29:1 fails |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #f8d9f4, the lightest of the five, takes the background and #1e1a34, 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: #664075;
--color-2: #8d8bbf;
--color-3: #1e1a34;
--color-4: #c5a9db;
--color-5: #f8d9f4;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #664075;
--color-2: #8d8bbf;
--color-3: #1e1a34;
--color-4: #c5a9db;
--color-5: #f8d9f4;
--color-primary: #664075;
--color-secondary: #8d8bbf;
--color-accent: #1e1a34;
}SCSS variables
$color-1: #664075;
$color-2: #8d8bbf;
$color-3: #1e1a34;
$color-4: #c5a9db;
$color-5: #f8d9f4;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#664075",
"#8d8bbf",
"#1e1a34",
"#c5a9db",
"#f8d9f4"
]
}Hex list
#664075
#8d8bbf
#1e1a34
#c5a9db
#f8d9f4Coolors link
https://coolors.co/664075-8d8bbf-1e1a34-c5a9db-f8d9f4