Khaki Color

HEX #F0E68C · rgb(240, 230, 140) · hsl(54, 77%, 75%)

Khaki color codes

Khaki is one of the named colors every browser understands. In CSS you can write it as khaki or #F0E68C.

FormatValue
HEX#F0E68C
RGBrgb(240, 230, 140)
HSLhsl(54, 77%, 75%)
CMYK0%, 4%, 42%, 6%
CSS namekhaki
.example {
  color: khaki;
  background-color: #F0E68C;
  border-color: rgb(240, 230, 140);
}

Colors that go with khaki

These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.

#8C96F0Complementary
#F0B48CAnalogous
#C8F08CAnalogous
#8CF0E6Triadic
#E68CF0Triadic

Tints and shades of khaki

Tints mix the color with white; shades mix it with black.

#FEFDF490% white
#FBF9E275% white
#F9F5D160% white
#F7F1C045% white
#F5EEAF30% white
#F2EA9D15% white
#F0E68CBase
Khaki
#CCC47715% black
#A8A16230% black
#847F4D45% black
#605C3860% black
#3C3A2375% black
#18170E90% black

Contrast and readability

Black text
16.40:1
passes AA and AAA
White text
1.28:1
fails

Use black text on khaki. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.

Frequently asked questions

What is the hex code for khaki?

The hex code for khaki is #F0E68C.

What is the RGB value of khaki?

Khaki is rgb(240, 230, 140): 240 red, 230 green and 140 blue on a 0 to 255 scale.

What color goes with khaki?

Its complementary color is #8C96F0, which is closest to the named color cornflower blue. Analogous and triadic matches are listed on this page.

Should text on khaki be black or white?

Use black text. The contrast ratio is 16.40:1 with black and 1.28:1 with white. WCAG AA asks for at least 4.5:1 for normal text.

Similar named colors

Pick any other color with the color picker, or browse all named colors.