Khaki sits in the bright yellow family, with the hex code #F0E68C mapping to rgb(240, 230, 140) in RGB and hsl(54, 76.9%, 74.5%) in HSL. In OKLCH it carries 91% perceptual lightness and 0.112 chroma — a moderately saturated, light reading that behaves well as a background, surface or supporting tone in modern interfaces. Yellow is the most luminous hue the eye can perceive, which is why it dominates road signs, highlighters and warning labels. In branding it reads as cheerful and clarifying, but it must be earned — every percentage of saturation amplifies attention.
Yellow is the most luminous hue the eye can perceive, which is why it dominates road signs, highlighters and warning labels. In branding it reads as cheerful and clarifying, but it must be earned — every percentage of saturation amplifies attention.
Yellow text fails contrast on white almost universally. Use it as a background with dark text, or strictly for non-essential decoration. Mind colour-blind users — protan/deutan vision conflates yellow with green.
#F0E68Crgb(240, 230, 140)hsl(54, 76.9%, 74.5%)hsv(54, 41.7%, 94.1%)lch(90.64% 45.34 97.09)oklch(91.35% 0.1119 102.83)lab(90.64% -5.6 45):root {
--color: #f0e68c;
--color-rgb: rgb(240, 230, 140);
--color-hsl: hsl(54, 76.9%, 74.5%);
--color-oklch: oklch(91.35% 0.1119 102.83);
}How khaki performs as foreground text on common surfaces, scored with WCAG 2.1.
Tints are produced by mixing khaki with progressively more white.
Shades are produced by mixing khaki with progressively more black.
Tones are produced by mixing khaki with progressively more gray, lowering chroma while keeping lightness.