Skip to content

Khaki

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

Khaki#F0E68C

Color codes

  • CSS namekhaki
  • HEX#F0E68C
  • RGBrgb(240 230 140)
  • HSLhsl(54 77% 75%)
  • HSB / HSVhsb(54, 42%, 94%)
  • OKLCHoklch(91.3% 0.112 102.8)
  • CMYKcmyk(0%, 4%, 42%, 6%)

White text

1.28:1 · fails WCAG

Black text

16.40:1 · passes WCAG AAA

Shades

50#FEF5A5
100#E2D87E
200#C5BB62
300#A99F45
400#8E8426
500#736A14
600#585110
700#3E3907
800#272200

Complementary

#F0E68C
#DEE0FC

Analogous

#F0E68C
#FEDCB3
#C6F3A5

Triadic

#F0E68C
#BDEBFD
#FDD5EC

About this color

Khaki in CSS and design

Khaki is a light, rich color from the yellow family. Khaki is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.

Use it in CSS by name or by any of its codes; these all give the same color:

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

For text on khaki, black reads best. Check other combinations with the contrast checker, or browse all CSS color names.

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), in HSL hsl(54 77% 75%). For print, cmyk(0%, 4%, 42%, 6%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

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.

Which colors go with khaki?

Its complementary color is #DEE0FC, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #FEDCB3 and #C6F3A5. The palette generator builds more combinations.