AfoliOpen Afoli →

Khaki & Dark Olive

A retro palette of 6 colors from the Afoli gallery: #4C4100, #507651, #9D7A9C, #6EBA88, #BEB0DD, #FAE187.

Open in the Afoli palette generator →

#4C4100 · Dark Slate Gray#507651 · Dark Olive Green#9D7A9C · Light Slate Gray#6EBA88 · Dark Sea Green#BEB0DD · Light Steel Blue#FAE187 · Khaki

Colors in this palette

HEXRGBHSLCMYKNearest named color
#4C4100rgb(76, 65, 0)hsl(51, 100%, 15%)0, 14, 100, 70≈ Dark Slate Gray
#507651rgb(80, 118, 81)hsl(122, 19%, 39%)32, 0, 31, 54≈ Dark Olive Green
#9D7A9Crgb(157, 122, 156)hsl(302, 15%, 55%)0, 22, 1, 38≈ Light Slate Gray
#6EBA88rgb(110, 186, 136)hsl(141, 36%, 58%)41, 0, 27, 27≈ Dark Sea Green
#BEB0DDrgb(190, 176, 221)hsl(259, 40%, 78%)14, 20, 0, 13≈ Light Steel Blue
#FAE187rgb(250, 225, 135)hsl(47, 92%, 75%)0, 10, 46, 2≈ Khaki

Preview in a UI

A heading in the primary color

Body text on the background, as a page or an app would show it.

Text on a card · #507651
Button

Roles: background #FAE187, surface #BEB0DD, text #4C4100, primary #507651, accent #9D7A9C (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background7.84 : 176Pass
Text on a card5.06 : 152Pass (WCAG)
Button label3.99 : 1-62Fail
Heading on background3.99 : 159Pass (WCAG)
Link on a card2.58 : 135Fail
Accent badge on a card1.83 : 123Fail
Primary control on background3.99 : 159Pass

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

CSS variables

:root {
  --dark-slate-gray: #4C4100;
  --dark-olive-green: #507651;
  --light-slate-gray: #9D7A9C;
  --dark-sea-green: #6EBA88;
  --light-steel-blue: #BEB0DD;
  --khaki: #FAE187;
}

How this palette was made

Afoli generated it from a fixed seed and kept it because it passes the gallery rules: every color is clearly distinct, one pair reaches 4.5 : 1 for text and the colors span a wide light-to-dark range. It is free to use (CC0).

Frequently asked questions

How do I use the Khaki & Dark Olive palette in CSS?

Copy the CSS variables on this page, or open the palette in the Afoli generator to export Tailwind, JSON, SVG, PNG or Adobe ASE.

Which colors of Khaki & Dark Olive can I use for text?

#4C4100 text on #FAE187 reaches 7.84 : 1, the strongest pair of the palette.

Similar palettes

Sources and licences

Updated November 21, 2026