Khaki Color Code (#f0e68c)

Khaki is #f0e68c in hex and rgb(240, 230, 140) — a light yellow. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

Khaki
#f0e68c
CSS namekhaki
Hex#f0e68c
RGBrgb(240, 230, 140)
HSLhsl(54 77% 75%)
HWBhwb(54 55% 6%)
CMYK0%, 4%, 42%, 6%

Tints and shades

Color harmonies

About Khaki

Khaki (khaki) is a light, vivid yellow with the hex code #f0e68c, or rgb(240, 230, 140). In HSL it sits at a hue of 54°, 77% saturation and 75% lightness. It is one of the 148 named colors every browser understands, so you can write color: khaki; instead of the hex value.

Using Khaki for text and backgrounds

PairingContrast ratioWCAG
Khaki text on white1.28 : 1fails
Khaki text on black16.40 : 1AAA

On a khaki background, use black text (16.40 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: khaki;               /* or #f0e68c */
  background-color: #f0e68c;
  border: 1px solid rgb(240 230 140 / 50%);
}

Similar named colors

Pale Goldenrod (#eee8aa), Navajo White (#ffdead), Wheat (#f5deb3), Moccasin (#ffe4b5), Peach Puff (#ffdab9), Burly Wood (#deb887).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for khaki?
#f0e68c — that is rgb(240, 230, 140) and hsl(54, 77%, 75%). In CSS you can also just write khaki.
Is khaki text readable on white?
Its contrast ratio on white is 1.28 : 1, which fails WCAG — use it for decoration or on a dark background instead.
What colors go well with khaki?
Its complementary color is #8e98f0; analogous colors #f0b58e and #c9f08e sit next to it on the color wheel.