Khaki color: hex codes, shades and palettes
Palettes built around khaki. Click any swatch to copy its hex code.
A dull yellow-brown. Worth knowing that the CSS keyword `khaki` is a much lighter, more yellow colour than the fabric the word comes from — this is the fabric.
No khaki palettes yet
Run npm run generate to build the dataset.
Khaki hex, RGB, HSL and OKLCH
- HEX
#8B7B4F- RGB
rgb(139, 123, 79)- HSL
hsl(44, 28%, 43%)- OKLCH
oklch(58.7% 0.064 90.3)- On white
- 4.16:1
- On black
- 5.04:1
Shades of khaki
Eleven steps from one base color, generated in OKLCH so each step is an equal perceived step rather than an equal numeric one. Click a swatch to copy it.
Contrast and readability
Khaki on white measures 4.16:1 and on black 5.04:1. WCAG AA asks for 4.5:1 on normal text and 3:1 on large text and UI components, so the higher of those two decides which background it belongs on. In the scale above, 500 is the first to clear 4.5:1 on white, at 5.32:1.
The contrast checker reports every level for a given pair and suggests the nearest passing shade on the same hue. The color picker builds this same scale from any color you paste in.
Related colors:taupe, brown, tan, sand, tuscan, clay. See every shade on the colors index.