Skip to main content

#F0E68C Khaki

#F0E68C is Khaki.

#F0E68C

Khaki

What are the RGB, HSL, OKLCH and CMYK values of #F0E68C?

HEX
#F0E68C
RGB
rgb(240, 230, 140)
HSL
hsl(54, 77%, 75%)
OKLCH
oklch(91.3% 0.112 103)
CMYK
0, 4, 42, 6

#F0E68C has a contrast ratio of 1.28:1 against white and 16.40:1 against black, so black is the better background for text in this color and dark text reads best on it.

Contrast checker

Text color (rows) on background (columns), scored against WCAG 2.2. White and near-black text on this color.

WCAG contrast ratio for each text and background color combination
Text ↓ / Bg → #F0E68C
#F0E68C
Same color
White
1.3Fail
Near-black
13.7AAA

AAA ≥ 7:1 · AA ≥ 4.5:1 body text· AA18 ≥ 3:1 large text (18pt, or 14pt bold) only

Text that works on each color

  • Near-black on #F0E68C · 13.7:1

Tints and shades of #F0E68C

Same hue and chroma in OKLCH, lighter to darker.

  1. #FFF8B7
  2. #F0E68C
  3. #C4BA60
  4. #A69B41
  5. #887E1E
  6. #6B6200
  7. #4E4700
  8. #332E00
  9. #1A1700

Colors that go with #F0E68C

Six harmony rules built from this color. Open any in the Studio.

Color blindness check

About 1 in 12 men and 1 in 200 women see color differently. Simulated with the Machado (2009) model.

Typical
Deuteranopia

No green cones — the most common form. No two swatches become hard to tell apart here.

Export

Copy-paste code, or download the swatches.

:root {
  --khaki-1: #F0E68C; /* Khaki */
}

Palettes, gradients and meshes with #F0E68C

Items using this color or one perceptually close to it, closest first.

Palettes (22)

Gradients (7)

Mesh gradients (16)