Khaki colour (#F0E68C)

Khaki is light a yellow with hex code #F0E68C, one of the 148 named colours every browser understands, so you can write color: ${name} directly in CSS. In RGB it is 240, 230, 140; in HSL 54°, 77%, 75%. Use the tool to explore shades and harmonies.

✓ Runs in your browser — nothing uploaded Free, no sign-upNo watermark

How to use the Khaki colour

  1. The colour is pre-filled; click Explore to see all formats, shades and harmonies.
  2. Edit the value to try a variation.
  3. Copy the code you need.

Khaki in every format

FormatValue
HEX#F0E68C
RGBrgb(240, 230, 140)
RGB (0–1)0.941, 0.902, 0.549
HSLhsl(54, 77%, 75%)
CMYK (approx.)0%, 4%, 42%, 6%
CSScolor: khaki;

Shades and tints of Khaki

Same hue and saturation, lightness from 90% to 10%:

#f9f5d2 #f3eba5 #ede278 #e8d84a #e2ce1d #b5a517 #877c12 #5a520c #2d2906

Colours that go with Khaki

HarmonyColours
Complementary #8e98f0
Triadic #8ef0e7 #e78ef0
Analogous #c9f08e #f0b58e

Similar named colours

The closest CSS named colours by RGB distance, useful when you need a keyword instead of a hex code or want a near match:

ColourHEXDifference
palegoldenrod #eee8aaclose
navajowhite #ffdeadclose
wheat #f5deb3close
moccasin #ffe4b5close
peachpuff #ffdab9close

Accessibility

Contrast ratio of Khaki against white is 1.28:1 (fails WCAG AA for normal text) and against black 16.4:1 (passes). Use black or very dark text on a Khaki background rather than white.

Frequently asked questions

What is the hex code for Khaki?

#F0E68C.

What is Khaki in RGB?

rgb(240, 230, 140).

What colour is complementary to Khaki?

#8e98f0, directly opposite on the colour wheel.

Privacy

This tool runs entirely inside your browser using WebAssembly and the Canvas/File APIs. Your files are never uploaded to ToolFlint or any third party; you can verify this in your browser's network tab or by switching to airplane mode after the page loads. Read how we process files.

Last updated 2026-09-23.