A five-color palette
Periwinkle: a periwinkle, indigo and ink color palette
Periwinkle and indigo in five steps, from a pale lavender white to an ink. Its hex codes are #b4bcfe, #4a4a93, #e5ebff, #7574c6, #1b192c. 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 |
|---|---|---|---|---|
#b4bcfe | Light Steel Blue (lightsteelblue) | oklch(81.3% 0.094 278.7) | 11.57:1 passes | 1.82:1 fails |
#4a4a93 | Dark Slate Blue (darkslateblue) | oklch(44.7% 0.117 280.6) | 2.69:1 fails | 7.80:1 passes |
#e5ebff | Lavender (lavender) | oklch(94.1% 0.028 272.5) | 17.66:1 passes | 1.19:1 fails |
#7574c6 | Medium Purple (mediumpurple) | oklch(59.6% 0.123 282.6) | 5.07:1 passes | 4.14:1 fails |
#1b192c | Midnight Blue (midnightblue) | oklch(22.6% 0.037 287.9) | 1.22:1 fails | 17.18:1 passes |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #e5ebff, the lightest of the five, takes the background and #1b192c, 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: #b4bcfe;
--color-2: #4a4a93;
--color-3: #e5ebff;
--color-4: #7574c6;
--color-5: #1b192c;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #b4bcfe;
--color-2: #4a4a93;
--color-3: #e5ebff;
--color-4: #7574c6;
--color-5: #1b192c;
--color-primary: #b4bcfe;
--color-secondary: #4a4a93;
--color-accent: #e5ebff;
}SCSS variables
$color-1: #b4bcfe;
$color-2: #4a4a93;
$color-3: #e5ebff;
$color-4: #7574c6;
$color-5: #1b192c;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#b4bcfe",
"#4a4a93",
"#e5ebff",
"#7574c6",
"#1b192c"
]
}Hex list
#b4bcfe
#4a4a93
#e5ebff
#7574c6
#1b192cCoolors link
https://coolors.co/b4bcfe-4a4a93-e5ebff-7574c6-1b192c