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
| Color | HEX | RGB | ΔE 2000 |
|---|---|---|---|
| palegoldenrod | #eee8aa | 238, 232, 170 | 5.2 |
| lemonchiffon | #fffacd | 255, 250, 205 | 10.1 |
| moccasin | #ffe4b5 | 255, 228, 181 | 10.6 |
| wheat | #f5deb3 | 245, 222, 179 | 10.8 |
| lightgoldenrodyellow | #fafad2 | 250, 250, 210 | 11.5 |
| navajowhite | #ffdead | 255, 222, 173 | 11.6 |
| darkkhaki | #bdb76b | 189, 183, 107 | 11.7 |
| gold | #ffd700 | 255, 215, 0 | 12.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.