TintShelf
Interface

Khaki Color Code: Hex #F0E68C

The hex code for Khaki is #F0E68C (the CSS keyword khaki). Khaki RGB code: rgb(240, 230, 140). The xkcd color survey gives #AAA662 instead, which looks clearly different; both codes are below with their source.

CSS Color 4#F0E68CTop: the code browsers use
xkcd color survey#AAA662Below: compare edge to edge

Khaki color codes: each Khaki hex code in every format

HEX#F0E68C
RGBrgb(240, 230, 140)
HSLhsl(54, 77%, 75%)
OKLCHoklch(91.3% 0.112 102.8)
LABlab(90.6 -5.6 45.0)
CMYKcmyk(0%, 4%, 42%, 6%)

Sources

CSS Color 4web standard keyword
xkcd color survey2010 naming survey
meodai color-name-listopen community list

Properties

Hex codes
3 different ones in 3 color lists; they look clearly different
Family
yellow
Contrast
1.28:1 with white, 16.40:1 with black
CSS keyword
khaki
Character
very light, moderately saturated
Readable text on it
black (AA)

The first recorded use of khaki as a color name in English dates from 1848.

A very light, moderately saturated yellow with a warm cast. In code, khaki gives exactly this web value. If you mean the color as people usually picture the name, the survey value #AAA662 is closer: it is darker and more muted.

Black text reads best on it; white text does not pass WCAG AA. Its exact opposite on the color wheel cannot be shown on screens, so the complementary palette uses the closest displayable version. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Pastel Yellow, its closest named neighbour, it looks darker, more muted and cooler; beside Cream it looks darker, more vivid and warmer.

Colors that go with Khaki

Complementary: the opposite of Khaki

Open in generator

  • #F0E68CBlack text 16.40:1
  • #DEDFFFBlack text 16.10:1
  • #F6F2C2Black text 18.40:1
  • #898A9EBlack text 6.19:1

Analogous

Open in generator

  • #FFDCB1Black text 16.12:1
  • #F0E68CBlack text 16.40:1
  • #C6F3A5Black text 16.76:1
  • #F9F6D3Black text 19.15:1

Triadic

Open in generator

  • #F0E68CBlack text 16.40:1
  • #B9ECFFBlack text 16.51:1
  • #FFD4EDBlack text 15.89:1
  • #FBF9E4Black text 19.77:1

Monochrome

Open in generator

  • #434023White text 10.52:1
  • #958E55Black text 6.28:1
  • #F0E68CBlack text 16.40:1
  • #F4EEB1Black text 17.71:1
  • #F9F6D3Black text 19.15:1

With neutrals

Open in generator

  • #F0E68CBlack text 16.40:1
  • #FBF9E4Black text 19.77:1
  • #1F1D0DWhite text 16.94:1
  • #A09E86Black text 7.73:1

How tints, shades and harmonies are calculated

Preview

Heading on Khaki

Body text on this color, 16.40:1.

Button

Heading in Khaki

Text in this color on white, 1.28:1.

Button

Tints and shades

  1. #FBF9E4
  2. #F9F6D3
  3. #F6F2C2
  4. #F4EEB1
  5. #F2EA9F
  6. #F0E68C
  7. #C1B970
  8. #958E55
  9. #6A663B
  10. #434023
  11. #1F1D0D

WhiteKhakiBlack

Similar named colors

Where the name comes from

Try it:

Screens show the same code differently, and print adds more variation. CMYK here is the plain formula without a printer profile, so use it as a starting point, not a press value. Contrast numbers follow WCAG 2.x.