khaki khaki #f0e68c
khaki is #f0e68c in hexadecimal, rgb(240, 230, 140) in decimal and hsl(54, 77, 75) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.
HEX · RGB · HSL
| HEX | #f0e68c |
| RGB | rgb(240, 230, 140) |
| HSL | hsl(54, 77%, 75%) |
Harmonies
Complementary
#8e98f0Analogous
#f0b58e#c9f08eTriadic
#8ef0e7#e78ef0Split complementary
#8ec9f0#b58ef0Tints & shades
#eadc5d#ede173#f0e78e#f4eca9#f7f1c0Accessibility
| vs #ffffff | 1.28:1 |
| vs #000000 | 16.4:1 |
| Suggested text color | #000000 · 16.4:1 · WCAG AAA |
Similar named colors
FAQ
What is the HEX code for khaki?
khaki is #f0e68c in hex, rgb(240, 230, 140) in decimal and hsl(54, 77%, 75%) in HSL. In CSS you can write either color: khaki; or color: #f0e68c; — they are equivalent.
What colors go with khaki?
The complementary #8e98f0 gives the strongest contrast, the analogous pair #f0b58e / #c9f08e is the safest, and the triad #8ef0e7 / #e78ef0 adds more tension. All three are derived from the 54° hue of #f0e68c.
Does #f0e68c read better on white or black?
Its contrast is 1.28:1 against white and 16.4:1 against black. Use #000000 text on it — that gives 16.4:1, which meets WCAG AAA.
Is a named color different from a hex color?
No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.