A five-color palette
Indigo and ochre: a ochre, indigo and straw color palette
Ochre and indigo with an ink blue, straw and a pale yellow. Its hex codes are #877f2a, #47417c, #1b1e2f, #d2c981, #eae2a2. 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 |
|---|---|---|---|---|
#877f2a | Olive (olive) | oklch(58.7% 0.105 103.9) | 5.10:1 passes | 4.12:1 fails |
#47417c | Dark Slate Blue (darkslateblue) | oklch(41.1% 0.096 286.0) | 2.32:1 fails | 9.07:1 passes |
#1b1e2f | Midnight Blue (midnightblue) | oklch(24.1% 0.033 276.0) | 1.27:1 fails | 16.49:1 passes |
#d2c981 | Burly Wood (burlywood) | oklch(82.7% 0.093 102.0) | 12.41:1 passes | 1.69:1 fails |
#eae2a2 | Pale Goldenrod (palegoldenrod) | oklch(90.4% 0.083 101.9) | 15.90:1 passes | 1.32:1 fails |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #eae2a2, the lightest of the five, takes the background and #1b1e2f, 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: #877f2a;
--color-2: #47417c;
--color-3: #1b1e2f;
--color-4: #d2c981;
--color-5: #eae2a2;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #877f2a;
--color-2: #47417c;
--color-3: #1b1e2f;
--color-4: #d2c981;
--color-5: #eae2a2;
--color-primary: #877f2a;
--color-secondary: #47417c;
--color-accent: #1b1e2f;
}SCSS variables
$color-1: #877f2a;
$color-2: #47417c;
$color-3: #1b1e2f;
$color-4: #d2c981;
$color-5: #eae2a2;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#877f2a",
"#47417c",
"#1b1e2f",
"#d2c981",
"#eae2a2"
]
}Hex list
#877f2a
#47417c
#1b1e2f
#d2c981
#eae2a2Coolors link
https://coolors.co/877f2a-47417c-1b1e2f-d2c981-eae2a2