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 order of the colors is meaning: swatch 1 takes the page's heaviest brand color, swatch 2 the next, and the page's greys take a tint of swatch 1 (how that works is in mapping). Reorder the swatches and the page reorders with them. 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; #1e1a34 is the darkest of the five.
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