A five-color palette
Grape: a grape, lilac and lavender color palette
One violet in five steps: grape and a dusky purple between a lilac, a pale lavender and a near-black. Its hex codes are #9561bb, #eed6ff, #66487d, #bea1f3, #1d1723. 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 |
|---|---|---|---|---|
#9561bb | Medium Purple (mediumpurple) | oklch(58.6% 0.142 309.3) | 4.71:1 passes | 4.46:1 fails |
#eed6ff | Lavender (lavender) | oklch(90.8% 0.061 311.3) | 15.70:1 passes | 1.34:1 fails |
#66487d | Dark Slate Blue (darkslateblue) | oklch(45.7% 0.090 309.3) | 2.79:1 fails | 7.53:1 passes |
#bea1f3 | Plum (plum) | oklch(76.5% 0.119 299.9) | 9.58:1 passes | 2.19:1 fails |
#1d1723 | Midnight Blue (midnightblue) | oklch(21.7% 0.025 307.2) | 1.20:1 fails | 17.51:1 passes |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #eed6ff, the lightest of the five, takes the background and #1d1723, 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: #9561bb;
--color-2: #eed6ff;
--color-3: #66487d;
--color-4: #bea1f3;
--color-5: #1d1723;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #9561bb;
--color-2: #eed6ff;
--color-3: #66487d;
--color-4: #bea1f3;
--color-5: #1d1723;
--color-primary: #9561bb;
--color-secondary: #eed6ff;
--color-accent: #66487d;
}SCSS variables
$color-1: #9561bb;
$color-2: #eed6ff;
$color-3: #66487d;
$color-4: #bea1f3;
$color-5: #1d1723;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#9561bb",
"#eed6ff",
"#66487d",
"#bea1f3",
"#1d1723"
]
}Hex list
#9561bb
#eed6ff
#66487d
#bea1f3
#1d1723Coolors link
https://coolors.co/9561bb-eed6ff-66487d-bea1f3-1d1723