A five-color palette
Matcha: a matcha, olive and pale sage color palette
A matcha green and a dark olive with a light yellow-green, a pale sage and a near-black. Its hex codes are #5d9300, #e6f2dd, #485e1d, #b3c781, #141c0d. 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 |
|---|---|---|---|---|
#5d9300 | Olive Drab (olivedrab) | oklch(60.2% 0.164 130.7) | 5.64:1 passes | 3.72:1 fails |
#e6f2dd | Beige (beige) | oklch(94.6% 0.031 131.5) | 18.11:1 passes | 1.16:1 fails |
#485e1d | Dark Olive Green (darkolivegreen) | oklch(44.9% 0.094 126.0) | 2.89:1 fails | 7.26:1 passes |
#b3c781 | Dark Khaki (darkkhaki) | oklch(79.8% 0.095 121.6) | 11.40:1 passes | 1.84:1 fails |
#141c0d | Midnight Blue (midnightblue) | oklch(21.3% 0.030 131.4) | 1.20:1 fails | 17.48:1 passes |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #e6f2dd, the lightest of the five, takes the background and #141c0d, 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: #5d9300;
--color-2: #e6f2dd;
--color-3: #485e1d;
--color-4: #b3c781;
--color-5: #141c0d;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #5d9300;
--color-2: #e6f2dd;
--color-3: #485e1d;
--color-4: #b3c781;
--color-5: #141c0d;
--color-primary: #5d9300;
--color-secondary: #e6f2dd;
--color-accent: #485e1d;
}SCSS variables
$color-1: #5d9300;
$color-2: #e6f2dd;
$color-3: #485e1d;
$color-4: #b3c781;
$color-5: #141c0d;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#5d9300",
"#e6f2dd",
"#485e1d",
"#b3c781",
"#141c0d"
]
}Hex list
#5d9300
#e6f2dd
#485e1d
#b3c781
#141c0dCoolors link
https://coolors.co/5d9300-e6f2dd-485e1d-b3c781-141c0d