A shared five-color palette
Dark slate grey, cadet blue and burly wood: a five-color palette
A five-color palette made in Recolor (recolor.page): #264653, #2a9d8f, #e9c46a, #f4a261 and #e76f51. White text reaches the WCAG AA ratio of 4.5:1 on #264653, black text on #2a9d8f, #e9c46a, #f4a261 and #e76f51.
Shared
| Hex | Nearest CSS name | OKLCH | Black text, AA | White text, AA |
|---|---|---|---|---|
#264653 | Dark Slate Grey (darkslategrey) | oklch(37.5% 0.044 226.2) | 2.08:1 fails | 10.08:1 passes |
#2a9d8f | Cadet Blue (cadetblue) | oklch(63.0% 0.101 183.0) | 6.32:1 passes | 3.32:1 fails |
#e9c46a | Burly Wood (burlywood) | oklch(83.4% 0.117 87.4) | 12.57:1 passes | 1.67:1 fails |
#f4a261 | Sandy Brown (sandybrown) | oklch(78.1% 0.127 57.9) | 10.19:1 passes | 2.06:1 fails |
#e76f51 | Tomato (tomato) | oklch(67.8% 0.156 35.2) | 6.79:1 passes | 3.09:1 fails |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #e9c46a, the lightest of the five, takes the background and #264653, 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: #264653;
--color-2: #2a9d8f;
--color-3: #e9c46a;
--color-4: #f4a261;
--color-5: #e76f51;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #264653;
--color-2: #2a9d8f;
--color-3: #e9c46a;
--color-4: #f4a261;
--color-5: #e76f51;
--color-primary: #264653;
--color-secondary: #2a9d8f;
--color-accent: #e9c46a;
}SCSS variables
$color-1: #264653;
$color-2: #2a9d8f;
$color-3: #e9c46a;
$color-4: #f4a261;
$color-5: #e76f51;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#264653",
"#2a9d8f",
"#e9c46a",
"#f4a261",
"#e76f51"
]
}Hex list
#264653
#2a9d8f
#e9c46a
#f4a261
#e76f51Coolors link
https://coolors.co/264653-2a9d8f-e9c46a-f4a261-e76f51