A shared five-color palette
Dark slate grey, misty rose and light steel blue: a five-color palette
A five-color palette made in Recolor (recolor.page): #445541, #ffe8e0, #99bbe3, #311816 and #5b88da. White text reaches the WCAG AA ratio of 4.5:1 on #445541 and #311816, black text on #ffe8e0, #99bbe3 and #5b88da.
Shared
| Hex | Nearest CSS name | OKLCH | Black text, AA | White text, AA |
|---|---|---|---|---|
#445541 | Dark Slate Grey (darkslategrey) | oklch(42.9% 0.039 140.9) | 2.62:1 fails | 8.01:1 passes |
#ffe8e0 | Misty Rose (mistyrose) | oklch(94.7% 0.027 40.2) | 17.87:1 passes | 1.18:1 fails |
#99bbe3 | Light Steel Blue (lightsteelblue) | oklch(78.1% 0.068 252.8) | 10.57:1 passes | 1.99:1 fails |
#311816 | Midnight Blue (midnightblue) | oklch(24.4% 0.041 25.3) | 1.27:1 fails | 16.50:1 passes |
#5b88da | Cornflower Blue (cornflowerblue) | oklch(63.2% 0.134 261.6) | 5.98:1 passes | 3.51:1 fails |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #ffe8e0, the lightest of the five, takes the background and #311816, 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: #445541;
--color-2: #ffe8e0;
--color-3: #99bbe3;
--color-4: #311816;
--color-5: #5b88da;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #445541;
--color-2: #ffe8e0;
--color-3: #99bbe3;
--color-4: #311816;
--color-5: #5b88da;
--color-primary: #445541;
--color-secondary: #ffe8e0;
--color-accent: #99bbe3;
}SCSS variables
$color-1: #445541;
$color-2: #ffe8e0;
$color-3: #99bbe3;
$color-4: #311816;
$color-5: #5b88da;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#445541",
"#ffe8e0",
"#99bbe3",
"#311816",
"#5b88da"
]
}Hex list
#445541
#ffe8e0
#99bbe3
#311816
#5b88daCoolors link
https://coolors.co/445541-ffe8e0-99bbe3-311816-5b88da