Skip to content

Khaki

Khaki is a light, rich color from the yellow family. Hex code #F0E68C.

Khaki#F0E68C

Khaki color codes

  • CSS namekhaki
  • HEX#F0E68C
  • RGBrgb(240, 230, 140)
  • HSLhsl(54, 77%, 75%)
  • OKLCHoklch(91.3% 0.112 102.8)
HSB and CMYK values
  • HSB / HSVhsb(54, 42%, 94%)
  • CMYKC0 M4 Y42 K6

White text

1.28:1 · fails WCAG

Black text

16.40:1 · passes WCAG AAA

Shades of khaki

A darker shade of khaki is #C5BB62 (200).

Colors that go with khaki

Complementary

Analogous

Triadic

The complementary color of khaki is #8C96F0, close to cornflower blue.

Click a color to copy its hex code.

Colors similar to khaki

Each compared with khaki.

About this color

Khaki in CSS and design

Khaki is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same khaki:

color: khaki;
color: #F0E68C;
color: rgb(240, 230, 140);
color: hsl(54, 77%, 75%);

What to know about khaki

Khaki comes from Hindi and Urdu khākī, 'dust-colored', from Persian khāk, dust. Merriam-Webster defines khaki as a light yellowish brown, but CSS khaki (#F0E68C) is a pale yellow. Dark khaki (#BDB76B) is the darker, more muted version, and pale goldenrod (#EEE8AA) is its nearest named neighbor, a softer version.

Frequently asked questions

What is the hex code for khaki?

#F0E68C. In CSS you can also use the keyword khaki, which works in every browser.

What is khaki in RGB and HSL?

In RGB it is rgb(240, 230, 140) and in HSL hsl(54, 77%, 75%). In CMYK it is about C0 M4 Y42 K6, though printed colors vary with paper and ink.

Should I use black or white text on khaki?

Black text works better: it has a contrast ratio of 16.40:1 and passes WCAG AAA. White text reaches 1.28:1.

What is the complementary color of khaki?

#8C96F0, close to cornflower blue. It sits opposite khaki on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.

Which colors go with khaki?

For strong contrast, pair it with its complementary color #8C96F0. For a calmer look, combine it with its analogous neighbors #F0B48C and #C8F08C. The palette generator builds more combinations.