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.
- HEX
#F0E68C - RGB
rgb(240 230 140) - HSL
hsl(54 77% 75%) - OKLCH
oklch(91.3% 0.112 103)
| Name | HEX | RGB | HSL | CMYK | OKLCH | |
|---|---|---|---|---|---|---|
| Khaki (CSS) | #F0E68C | 240, 230, 140 | 54°, 77%, 75% | 0, 4, 42, 6 | 91.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.
- HEX
#F0E68C - RGB
rgb(240 230 140) - HSL
hsl(54 77% 75%)
Variations of Khaki (CSS)
Text on Khaki (CSS)
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
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
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.
- Khaki (CSS) Complementary Color Scheme#F0E68C#F9F7DE#8F99FB#4455EE#E6E8FA
- Khaki (CSS) Analogous Color Scheme#F08F90#EDB48F#F0E68C#C0FA8B#90EE90
- Khaki (CSS) Triadic Color Scheme#F0E68C#89F5E3#EE88EE#FEFBE5#40E0D0
- Khaki (CSS) Split-complementary Color Scheme#F0E68C#86C8ED#BF8FE5#EBD84B#D4E9F5
- Khaki (CSS) Tetradic Color Scheme#F0E68C#98F6B0#8F99FB#EE88CC#FEFBE5
- Khaki (CSS) Monochromatic Color Scheme#CAB012#EBD84B#F0E68C#FBF4D1#FBF9E8
Nearest CSS named colors
- Pale Goldenrod (
palegoldenrod): Pale Goldenrod (#EEE8AA) is about as light as Khaki (CSS) (relative luminance 0.788 vs 0.770) and less saturated, with the same hue. - Navajo White (
navajowhite): Navajo White (#FFDEAD) is about as light as Khaki (CSS) (relative luminance 0.765 vs 0.770) and more saturated, with its hue 18° away. - Moccasin (CSS) (
moccasin): Moccasin (CSS) (#FFE4B5) is about as light as Khaki (CSS) (relative luminance 0.801 vs 0.770) and more saturated, with its hue 16° away. - Wheat (CSS) (
wheat): Wheat (CSS) (#F5DEB3) is about as light as Khaki (CSS) (relative luminance 0.749 vs 0.770) and equally saturated, with its hue 15° away.
Similar light yellow colors
- Alligator Alley#C5D17B
- Ancient Treasure#E7D082
- Animal Kingdom#BCC09E
- Anna Banana#F5D547
- April Showers#DADEB5
- Ash#BEBAA7
- Aurora#EBD147
- Banana#FFFC79
- Banana Drama#F1D548
- Banana Frappé#DDD5B6
- Beekeeper#F6E491
- Beige#E6DAA6
- Beige and Sage#BBC199
- Big Yellow Taxi#FFFF33
- Biohazard Suit#FBFB4C
- Bitter Melon#CFD1B2
- Butter#FFFF81
- Buttercup Glow#F1F458
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.