Khaki Color
YellowsA dusty tan-yellow from the Urdu and Persian word for "dust-colored," adopted for British military uniforms in the 19th century.
Conversions
#f0e68c
rgb(240, 230, 140)
hsl(54, 76.9%, 74.5%)
hsv(54, 41.7%, 94.1%)
cmyk(0%, 4.2%, 41.7%, 5.9%)
lab(90.33, -9.01, 44.98)
lch(90.33, 45.87, 101.33)
oklch(91.4%, 0.1119, 102.86)
hwb(54, 54.9%, 5.9%)
Harmony colors
Accessibility
Black text reads better on this background (16.4:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#ececa8 · ΔE 5
Deuteranopia
#ecedae · ΔE 6
Tritanopia
#f0babe · ΔE 34.8
Achromatopsia
#e3e3e3 · ΔE 22.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #f0e68c;
bg-[#f0e68c]
Related colors
Frequently asked questions
Khaki (#f0e68c) is rgb(240, 230, 140) in RGB.
No, #f0e68c is not web-safe. The nearest web-safe colors are among its tones and shades below.
Related tools
HEX to RGB Converter
Convert any HEX color code to its RGB and HSL equivalents, live, with copy-to-clipboard values.
Try it → AccessibilityContrast Checker
Check the WCAG contrast ratio between any two colors, live, with AA/AAA pass-fail results.
Try it → GeneratorsPalette Generator
Generate complementary, analogous, triadic, split-complementary, tetradic, square, and monochromatic palettes from any base color.
Try it →Build something with this color
Generate a full palette from #f0e68c, or check how it holds up for accessibility.