Skip to content
Hex Color Picker

Khaki Color

Khaki is a pale, sandy yellow. Its hex code is #F0E68C, which is rgb(240, 230, 140) in RGB, hsl(54, 77%, 75%) in HSL and cmyk(0%, 4%, 42%, 6%) in CMYK. It is a standard named color in CSS, so you can write it as khaki in a stylesheet.

#F0E68Cexactly khaki

This is the CSS color khaki #F0E68C

Use 3 or 6 digits, for example #1E90FF or 19F

For example rgb(30, 144, 255) or 30 144 255

For example hsl(210, 100%, 56%)

For example cmyk(88%, 44%, 0%, 0%)

Recent colors

Colors you pick appear here. They stay on this device.

By the Hex Color Picker Team. Updated

Khaki color codes

  • Hex: #F0E68C
  • RGB: rgb(240, 230, 140)
  • HSL: hsl(54, 77%, 75%)
  • CMYK: cmyk(0%, 4%, 42%, 6%) (standard formula, not a print profile)
  • CSS name: khaki

About the color khaki

CSS khaki is a muted pale yellow, not the olive-brown of khaki trousers. Red and green are high and blue is much lower, which gives it a warm, sandy softness.

Where khaki works

  • Soft highlights and warm notices.
  • Light backgrounds that feel less stark than white.
  • Gentle accents next to navy or teal.

Colors that go with khaki

These named colors pair well with khaki. Click one to see its page where it exists.

The complementary color of khaki, directly opposite it on the color wheel, is #8C96F0, closest to cornflowerblue. The analogous neighbors are #F0B48C and #C8F08C, and the triadic partners are #8CF0E6 and #E68CF0. The color palette generator builds a full scheme from any of them.

Named colors nearest to khaki are palegoldenrod, navajowhite, and moccasin.

Shades and tints of khaki

Keeping the hue and saturation of khaki and stepping the lightness from light to dark gives this scale. Use the lighter values for backgrounds and the darker ones for text and borders.

  • #FCFAE8
  • #F5EFB6
  • #EFE483
  • #E8D950
  • #E2CE1D
  • #AFA017
  • #7C7110
  • #49430A
  • #171503

Contrast and accessibility

White text on khaki has a contrast ratio of 1.3:1, and black text has 16.4:1. The WCAG AA guideline asks for at least 4.5:1 for body text and 3:1 for large text. Black text passes on khaki, and white text does not.

The khaki of clothing is closer to tan or darkkhaki. If you want that look, start from those.

Common questions

What is the hex code for khaki?

The hex code for khaki is #F0E68C. In RGB it is rgb(240, 230, 140) and in HSL it is hsl(54, 77%, 75%).

Why doesn't CSS khaki look like khaki trousers?

The CSS color is pale yellow. The fabric color is a darker tan-olive, which the CSS list covers with names such as darkkhaki and tan.

Is white text readable on khaki?

Not for body text. White on khaki has a contrast ratio of 1.3:1, below the 4.5:1 WCAG AA guideline. Black text has a ratio of 16.4:1, which passes.

More named colors

More color tools