A shared five-color palette
Grey, midnight blue and moccasin: a five-color palette
A five-color palette made in Recolor (recolor.page): #a3729a, #21141d, #ffe9bb, #b6cfc0 and #3d5e4c. White text reaches the WCAG AA ratio of 4.5:1 on #21141d and #3d5e4c, black text on #a3729a, #ffe9bb and #b6cfc0.
Shared
| Hex | Nearest CSS name | OKLCH | Black text, AA | White text, AA |
|---|---|---|---|---|
#a3729a | Grey (grey) | oklch(61.5% 0.083 333.2) | 5.43:1 passes | 3.87:1 fails |
#21141d | Midnight Blue (midnightblue) | oklch(21.2% 0.027 338.4) | 1.18:1 fails | 17.76:1 passes |
#ffe9bb | Moccasin (moccasin) | oklch(94.1% 0.064 85.4) | 17.63:1 passes | 1.19:1 fails |
#b6cfc0 | Silver (silver) | oklch(83.2% 0.034 159.3) | 12.68:1 passes | 1.66:1 fails |
#3d5e4c | Dark Slate Grey (darkslategrey) | oklch(45.1% 0.049 159.8) | 2.90:1 fails | 7.23:1 passes |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #ffe9bb, the lightest of the five, takes the background and #21141d, 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: #a3729a;
--color-2: #21141d;
--color-3: #ffe9bb;
--color-4: #b6cfc0;
--color-5: #3d5e4c;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #a3729a;
--color-2: #21141d;
--color-3: #ffe9bb;
--color-4: #b6cfc0;
--color-5: #3d5e4c;
--color-primary: #a3729a;
--color-secondary: #21141d;
--color-accent: #ffe9bb;
}SCSS variables
$color-1: #a3729a;
$color-2: #21141d;
$color-3: #ffe9bb;
$color-4: #b6cfc0;
$color-5: #3d5e4c;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#a3729a",
"#21141d",
"#ffe9bb",
"#b6cfc0",
"#3d5e4c"
]
}Hex list
#a3729a
#21141d
#ffe9bb
#b6cfc0
#3d5e4cCoolors link
https://coolors.co/a3729a-21141d-ffe9bb-b6cfc0-3d5e4c