Swatchproof

Khaki #F0E68C

Khaki is one of the named colours in CSS, written khaki. Black text reaches 16.40:1 on it, enough for body text.

Try on walls Preview on a website

Colour codes

CSS keywordkhaki
HEX#F0E68C
RGBrgb(240 230 140)
HSLhsl(54 77% 75%)
OKLCHoklch(91.3% 0.112 102.8)
White text1.28:1 · body text AA Fail
Black text16.40:1 · body text AA Pass

Colours that go with Khaki

The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Naples Yellow (#FBE6A0), close. These are the colours Wada paired it with, ranked by their contrast with Khaki itself.

ColourHEXContrast with KhakiBody text AA
Deep Slate Green#112F2C11.18:1Pass
Deep Slate Olive#25312210.64:1Pass
Eugenia Red | B#DA525D3.07:1Fail
Light Porcelain Green#00908A3.06:1Fail
Peach Red#F15A302.63:1Fail
Spinel Red#F272912.16:1Fail
Grenadine Pink#F480672.02:1Fail
Yellow Ocher#E2B5401.50:1Fail
Neutral Gray#B6BFC11.46:1Fail

Palettes with Naples Yellow

Shades and tints of Khaki

Nine lightness steps in OKLCH that keep the hue of Khaki. Chroma is reduced only where sRGB cannot show it.

:root {
  --khaki-100: #FFF8B7;
  --khaki-200: #F2E88E;
  --khaki-300: #DBD178;
  --khaki-400: #BEB45B;
  --khaki-500: #9F953A;
  --khaki-600: #7E730C;
  --khaki-700: #5F5700;
  --khaki-800: #423C00;
  --khaki-900: #262200;
}

Text that keeps Khaki on screen

Text #262200 on #F0E68C reaches 12.51:1, which passes WCAG AA for body text. Check it on a dashboard

Similar CSS colours