A five-color palette

Khaki: a olive, khaki and pale green color palette

An olive yellow and a dark olive with khaki, a pale green-gray and an olive-black. Its hex codes are #899700, #1e2212, #b9be73, #5a5b00, #e4e7c2. Open it in Recolor (recolor.page) to see it on a real web page, or copy the code below.

Last updated

#899700Olive Drab
#1e2212Dark Slate Grey
#b9be73Dark Khaki
#5a5b00Dark Olive Green
#e4e7c2Wheat
Computed with Recolor's own color code (culori, the WCAG 2 contrast ratio), November 12, 2026
HexNearest CSS nameOKLCHBlack text, AAWhite text, AA
#899700Olive Drab (olivedrab)oklch(64.3% 0.147 116.2)6.49:1 passes3.24:1 fails
#1e2212Dark Slate Grey (darkslategrey)oklch(24.3% 0.029 120.0)1.29:1 fails16.24:1 passes
#b9be73Dark Khaki (darkkhaki)oklch(78.0% 0.098 111.7)10.68:1 passes1.97:1 fails
#5a5b00Dark Olive Green (darkolivegreen)oklch(45.5% 0.100 110.5)2.93:1 fails7.16:1 passes
#e4e7c2Wheat (wheat)oklch(91.6% 0.049 111.1)16.51:1 passes1.27:1 fails

Using the palette

In Recolor the lightness and the order of the colors are meaning. On a light page #e4e7c2, the lightest of the five, takes the background and #1e2212, 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

CSS
:root {
  --color-1: #899700;
  --color-2: #1e2212;
  --color-3: #b9be73;
  --color-4: #5a5b00;
  --color-5: #e4e7c2;
  --color-primary: var(--color-1);
  --color-secondary: var(--color-2);
  --color-accent: var(--color-3);
}

Tailwind v4 @theme

CSS
@theme {
  --color-1: #899700;
  --color-2: #1e2212;
  --color-3: #b9be73;
  --color-4: #5a5b00;
  --color-5: #e4e7c2;
  --color-primary: #899700;
  --color-secondary: #1e2212;
  --color-accent: #b9be73;
}

SCSS variables

SCSS
$color-1: #899700;
$color-2: #1e2212;
$color-3: #b9be73;
$color-4: #5a5b00;
$color-5: #e4e7c2;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;

JSON

JSON
{
  "colors": [
    "#899700",
    "#1e2212",
    "#b9be73",
    "#5a5b00",
    "#e4e7c2"
  ]
}

Hex list

Text
#899700
#1e2212
#b9be73
#5a5b00
#e4e7c2

Coolors link

URL
https://coolors.co/899700-1e2212-b9be73-5a5b00-e4e7c2