Khaki
Khaki is a light, rich color from the yellow family. Hex code #F0E68C.
Khaki color codes
- CSS name
khaki - HEX
#F0E68C - RGB
rgb(240, 230, 140) - HSL
hsl(54, 77%, 75%) - OKLCH
oklch(91.3% 0.112 102.8)
HSB and CMYK values
- HSB / HSV
hsb(54, 42%, 94%) - CMYK
C0 M4 Y42 K6
White text
1.28:1 · fails WCAG
Black text
16.40:1 · passes WCAG AAA
Shades of khaki
A darker shade of khaki is #C5BB62 (200).
Colors that go with khaki
Complementary
Analogous
Triadic
The complementary color of khaki is #8C96F0, close to cornflower blue.
Click a color to copy its hex code.
Colors similar to khaki
- Pale goldenrod#EEE8AA
More muted
- Navajo white#FFDEAD
More orange, more muted
- Moccasin#FFE4B5
Slightly lighter, more orange, more muted
- Wheat#F5DEB3
More orange, more muted
- Bisque#FFE4C4
Slightly lighter, an orange tint
- Peach puff#FFDAB9
More orange, more muted
Each compared with khaki.
About this color
Khaki in CSS and design
Khaki is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same khaki:
color: khaki;
color: #F0E68C;
color: rgb(240, 230, 140);
color: hsl(54, 77%, 75%);What to know about khaki
Khaki comes from Hindi and Urdu khākī, 'dust-colored', from Persian khāk, dust. Merriam-Webster defines khaki as a light yellowish brown, but CSS khaki (#F0E68C) is a pale yellow. Dark khaki (#BDB76B) is the darker, more muted version, and pale goldenrod (#EEE8AA) is its nearest named neighbor, a softer version.
Frequently asked questions
What is the hex code for khaki?
#F0E68C. In CSS you can also use the keyword khaki, which works in every browser.
What is khaki in RGB and HSL?
In RGB it is rgb(240, 230, 140) and in HSL hsl(54, 77%, 75%). In CMYK it is about C0 M4 Y42 K6, though printed colors vary with paper and ink.
Should I use black or white text on khaki?
Black text works better: it has a contrast ratio of 16.40:1 and passes WCAG AAA. White text reaches 1.28:1.
What is the complementary color of khaki?
#8C96F0, close to cornflower blue. It sits opposite khaki on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with khaki?
For strong contrast, pair it with its complementary color #8C96F0. For a calmer look, combine it with its analogous neighbors #F0B48C and #C8F08C. The palette generator builds more combinations.