A five-color palette
Watermelon: a pink and green color palette
A bright pink and a pale pink against two greens, a fresh one and a deep one, with a green-black. Its hex codes are #f99fec, #002910, #39ab52, #ffdeff, #006f3d. 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 |
|---|---|---|---|---|
#f99fec | Plum (plum) | oklch(81.7% 0.143 332.1) | 11.20:1 passes | 1.88:1 fails |
#002910 | Dark Slate Grey (darkslategrey) | oklch(24.6% 0.065 152.0) | 1.32:1 fails | 15.85:1 passes |
#39ab52 | Medium Sea Green (mediumseagreen) | oklch(65.7% 0.163 147.5) | 7.12:1 passes | 2.95:1 fails |
#ffdeff | Lavender (lavender) | oklch(93.8% 0.056 326.0) | 17.14:1 passes | 1.22:1 fails |
#006f3d | Dark Green (darkgreen) | oklch(47.6% 0.118 154.8) | 3.34:1 fails | 6.29:1 passes |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #ffdeff, the lightest of the five, takes the background and #002910, 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: #f99fec;
--color-2: #002910;
--color-3: #39ab52;
--color-4: #ffdeff;
--color-5: #006f3d;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #f99fec;
--color-2: #002910;
--color-3: #39ab52;
--color-4: #ffdeff;
--color-5: #006f3d;
--color-primary: #f99fec;
--color-secondary: #002910;
--color-accent: #39ab52;
}SCSS variables
$color-1: #f99fec;
$color-2: #002910;
$color-3: #39ab52;
$color-4: #ffdeff;
$color-5: #006f3d;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#f99fec",
"#002910",
"#39ab52",
"#ffdeff",
"#006f3d"
]
}Hex list
#f99fec
#002910
#39ab52
#ffdeff
#006f3dCoolors link
https://coolors.co/f99fec-002910-39ab52-ffdeff-006f3d