Skip to content

Khaki color #F0E68C

rgb(240, 230, 140) · oklch(91.3% 0.112 102.8)

Khaki (#F0E68C) is a very light, warm yellow. It mixes 94% red, 90% green and 55% blue, with a perceived lightness of 91.3% in OKLCH. Black text reads best on it (16.40:1 vs 1.28:1). The closest other CSS color is Pale Goldenrod (#EEE8AA). For people with tritanopia it shifts the most, toward #FDDBD0.

Khaki color codes

HEX
RGB
HSL
HSV / HSB
OKLCH
CMYK
CSS keyword

Click a value to copy it. Convert any other color with the color converter.

Shades, tints and tones of khaki

Shades mix khaki with black, tints mix it with white, and tones mix it with gray. Mixing happens in OKLab, so the steps look evenly spaced.

Tints (lighter)

Shades (darker)

Tones (muted)

Khaki as a UI color scale (50–950)

An 11-step scale for design systems, with khaki placed at step 200. Copy it as a Tailwind v4 theme below.

Colors that go with khaki

Harmonies are computed on the OKLCH hue wheel, keeping khaki’s lightness and saturation where the sRGB gamut allows. Open any row in the palette generator to adjust it.

Complementary

Edit

The base color and the hue directly opposite it. Maximum contrast; use one as the accent.

Analogous

Edit

Neighbors 30° either side on the hue wheel. Calm and cohesive, common in nature.

Triadic

Edit

Three hues spaced 120° apart. Vibrant but balanced; let one dominate.

Split complementary

Edit

The base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.

Tetradic (rectangle)

Edit

Two complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.

Monochromatic

Edit

One hue at different lightness levels. Safe, elegant, and easy to read.

Is khaki accessible? Contrast with white and black

Khaki text on white

1.28:1

AA fail AA large fail AAA fail

Khaki text on black

16.40:1

AA pass AA large pass AAA pass

Check khaki against any other color

How khaki looks with color blindness

Simulated with the Machado et al. (2009) model. Around 1 in 12 men and 1 in 200 women have some form of color vision deficiency.

Protanopia: #f5e085
Red-blind. Reds look dark and brownish; red and green are easily confused.
Deuteranopia: #f8e690
Green-blind, the most common strong form. Red, green, orange and brown look similar.
Tritanopia: #fddbd0
Blue-blind and rare. Blue and green are confused, as are yellow and pink.
Achromatopsia: #e3e3e3
Total color blindness, very rare. Only lightness differences are visible.

Colors similar to khaki

The closest CSS named colors by perceptual distance (ΔE OK; under 2 is hard to tell apart).

ΔE 3.3 Pale Goldenrod
#eee8aa
ΔE 5.6 Navajo White
#ffdead
ΔE 5.7 Moccasin
#ffe4b5
ΔE 5.8 Wheat
#f5deb3

Use khaki in CSS and Tailwind

CSS custom properties

:root {
  --khaki: #f0e68c;
  --khaki-rgb: 240 230 140;
}

.text-khaki { color: var(--khaki); }
.bg-khaki { background-color: var(--khaki); }

Tailwind v4 theme

@theme {
  --color-khaki-50: #f7f7f3;
  --color-khaki-100: #efeede;
  --color-khaki-200: #f0e68c;
  --color-khaki-300: #c9c38f;
  --color-khaki-400: #aaa46a;
  --color-khaki-500: #8e8851;
  --color-khaki-600: #767042;
  --color-khaki-700: #5d5937;
  --color-khaki-800: #49462e;
  --color-khaki-900: #383626;
  --color-khaki-950: #212017;
}

Make a gradient from khaki: open the gradient generator.

Painting in Procreate or designing in Photoshop? See our palette packs: every color with HEX codes is free to browse, and the swatch files are a quick download.

More yellow colors