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

#f0e68c
HEX#f0e68c
RGBrgb(240, 230, 140)
HSLhsl(54, 77%, 75%)

Harmonies

Complementary

#8e98f0

Analogous

#f0b58e#c9f08e

Triadic

#8ef0e7#e78ef0

Split complementary

#8ec9f0#b58ef0

Tints & shades

#eadc5d#ede173#f0e78e#f4eca9#f7f1c0

Accessibility

vs #ffffff1.28:1
vs #00000016.4:1
Suggested text color#000000 · 16.4:1 · WCAG AAA

Similar named colors

palegoldenrod#eee8aanavajowhite#ffdeadwheat#f5deb3moccasin#ffe4b5peachpuff#ffdab9burlywood#deb887

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.

← All named colors