Color reference

Khaki #F0E68C

Khaki is the standard CSS named color #F0E68C, a light muted yellow with an earthy tone.

Khaki is the CSS named color keyword khaki, standardized at #F0E68C in sRGB.

Khaki #F0E68C 16.40:1 with black text

Color values

HEX#F0E68C
RGBrgb(240, 230, 140)
HSLhsl(54 77% 75%)
HSV54°, 42%, 94%
CMYK0%, 4%, 42%, 6%

HEX/RGB/HSL/HSV are deterministic sRGB representations. CMYK here is a mathematical approximation, not a printer-profile conversion.

Black or white text?

Black text 16.40:1 — AA normal text passes
White text 1.28:1 — AA normal text fails

AA normal text: black passes; white fails.

AA large text: black passes; white fails.

WCAG contrast thresholds use 4.5:1 for normal text and 3:1 for large text. Do not round a near-threshold result upward when testing conformance.

Tints and shades of Khaki

These steps are computed by RGB-mixing #F0E68C toward white or black. They are generated values, not official named colors.

80% tint #FCFAE8
60% tint #F9F5D1
40% tint #F6F0BA
20% tint #F3EBA3
Base #F0E68C
20% shade #C0B870
40% shade #908A54
60% shade #605C38
80% shade #302E1C

Need more control? Use the Tints and Shades Generator or Lighten / Darken tool.

CSS usage

.example {
  color: #000000;
  background-color: khaki;
}

You can use either khaki or #F0E68C in CSS; both resolve to the same sRGB color.