khaki (#F0E68C)

khaki is a CSS named color with the hex code #F0E68C, rgb(240, 230, 140). It is a pale, saturated yellow.

khaki#F0E68C
Keywordkhaki
HEX#f0e68c
RGBrgb(240, 230, 140)
HSLhsl(54, 77%, 75%)

Full #F0E68C details: palettes, shades, color-blind view →

Description

Khaki has a hue of 54°, saturation 77% and lightness 75%, which places it in the yellow family. Its strongest channel is red (240).

Using khaki in CSS

.title { color: khaki; }
.box   { background: khaki; border-color: #f0e68c; }
.soft  { background: rgb(240 230 140 / 20%); }   /* khaki at 20% opacity */

Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.

Similar named colors

ColorHEXRGBΔE 2000
palegoldenrod#eee8aa238, 232, 1705.2
lemonchiffon#fffacd255, 250, 20510.1
moccasin#ffe4b5255, 228, 18110.6
wheat#f5deb3245, 222, 17910.8
lightgoldenrodyellow#fafad2250, 250, 21011.5
navajowhite#ffdead255, 222, 17311.6
darkkhaki#bdb76b189, 183, 10711.7
gold#ffd700255, 215, 012.5

ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.

Pairs well with

Readability

Contrast with white text: 1.28:1; with black text: 16.40:1. Black body text on khaki meets WCAG AA; white text does not.

Frequently asked questions

What is the hex code for khaki?
#F0E68C.
What colors are similar to khaki?
palegoldenrod (#eee8aa), lemonchiffon (#fffacd), moccasin (#ffe4b5).