Huebook

Khaki (CSS)

Khaki (CSS) is a very light, saturated yellow color with the hex code #F0E68C (hue 54°, saturation 77%, lightness 75%). It is also the CSS named color khaki.

#F0E68C
NameHEXRGBHSLCMYKOKLCH
Khaki (CSS)#F0E68C240, 230, 14054°, 77%, 75%0, 4, 42, 691.3% 0.112 103

Contrast with white text 1.28:1, with black text 16.40:1 — use black text on Khaki (CSS).

khaki is one of the 148 named colors in CSS, with exactly this value, so color: khaki works in any browser without a hex code.

Huebook · Maintained by Iris Marlow (pen name) · automated checks · Data: color-name-list (MIT) for names; CSS Color Module Level 4 (W3C) for CSS named colors · Updated · How the checks work

Adjust Khaki (CSS)

Move the sliders to make Khaki (CSS) lighter, darker, more or less vivid, or shift its hue. The nearest named colors update as you go.

Khaki (CSS)
  • HEX#F0E68C
  • RGBrgb(240 230 140)
  • HSLhsl(54 77% 75%)

Variations of Khaki (CSS)

Text on Khaki (CSS)

White textThe quick brown fox1.28:1 · AA fail · AAA fail
Black textThe quick brown fox16.40:1 · AA pass · AAA pass

WCAG 2 asks for 4.5:1 for body text and 3:1 for large text (AA), and 7:1 and 4.5:1 for the stricter AAA level.

Khaki (CSS) with color blindness

Normal #F0E68C
Protanopia #F5E085
Deuteranopia #F8E690
Tritanopia #FDDBD0

How Khaki (CSS) appears with a complete loss of red (protanopia), green (deuteranopia) or blue (tritanopia) cones, simulated with the Machado, Oliveira and Fernandes (2009) model. Red-green color blindness affects about 1 in 12 men and 1 in 200 women, so do not rely on color alone to carry meaning.

Tints and shades

#F9F5D2
#F0E68E
#E7D84B
#CBB91A
#877C12
#443E09

Colors that go with Khaki (CSS)

Six color schemes built on Khaki (CSS) with classic harmony rules. The complementary scheme pairs it with Periwinkle Blue (#8F99FB), the color opposite it on the color wheel.

Nearest CSS named colors

Similar light yellow colors

Questions

What is the hex code for Khaki (CSS)?

#F0E68C — RGB 240, 230, 140, HSL 54°, 77%, 75%.

Is Khaki (CSS) a warm or cool color?

Warm — its hue sits at 54° on the color wheel.