A five-color palette
Clover: a clover green, leaf and pale lime color palette
A clover green and a deep leaf green with a soft green, a pale lime and a green-black. Its hex codes are #152a01, #57a744, #cdf9bf, #286d15, #8fc778. 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 |
|---|---|---|---|---|
#152a01 | Dark Slate Grey (darkslategrey) | oklch(25.7% 0.071 132.8) | 1.36:1 fails | 15.40:1 passes |
#57a744 | Medium Sea Green (mediumseagreen) | oklch(65.5% 0.157 139.9) | 7.02:1 passes | 2.99:1 fails |
#cdf9bf | Pale Goldenrod (palegoldenrod) | oklch(93.7% 0.089 138.2) | 17.90:1 passes | 1.17:1 fails |
#286d15 | Dark Green (darkgreen) | oklch(47.3% 0.138 140.0) | 3.29:1 fails | 6.39:1 passes |
#8fc778 | Dark Sea Green (darkseagreen) | oklch(77.2% 0.122 137.0) | 10.61:1 passes | 1.98:1 fails |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #cdf9bf, the lightest of the five, takes the background and #152a01, 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: #152a01;
--color-2: #57a744;
--color-3: #cdf9bf;
--color-4: #286d15;
--color-5: #8fc778;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #152a01;
--color-2: #57a744;
--color-3: #cdf9bf;
--color-4: #286d15;
--color-5: #8fc778;
--color-primary: #152a01;
--color-secondary: #57a744;
--color-accent: #cdf9bf;
}SCSS variables
$color-1: #152a01;
$color-2: #57a744;
$color-3: #cdf9bf;
$color-4: #286d15;
$color-5: #8fc778;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#152a01",
"#57a744",
"#cdf9bf",
"#286d15",
"#8fc778"
]
}Hex list
#152a01
#57a744
#cdf9bf
#286d15
#8fc778Coolors link
https://coolors.co/152a01-57a744-cdf9bf-286d15-8fc778