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
EditThe base color and the hue directly opposite it. Maximum contrast; use one as the accent.
Split complementary
EditThe base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.
Tetradic (rectangle)
EditTwo complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.
Is khaki accessible? Contrast with white and black
1.28:1
AA fail AA large fail AAA fail
16.40:1
AA pass AA large pass AAA pass
- As a background, khaki works best with black text.
- For body text on white, use the darker variant (the closest color that passes AA, 4.5:1).
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.
#f5e085 Red-blind. Reds look dark and brownish; red and green are easily confused.
#f8e690 Green-blind, the most common strong form. Red, green, orange and brown look similar.
#fddbd0 Blue-blind and rare. Blue and green are confused, as are yellow and pink.
#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).
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.