Skip to content
PantoneTools
yellow
CSS Named Colors

Khaki

khaki · #F0E68C

HEX

#F0E68C

RGB

rgb(240, 230, 140)

CMYK

cmyk(0%, 4%, 42%, 6%)

HSL

hsl(54, 77%, 75%)

LAB

lab(90.3, -9.0, 45.0)

What is Khaki?

Khaki is the khaki reference in the CSS Named Colors. Its sRGB value is #F0E68C (rgb 240, 230, 140). It sits in the yellow family. The 147 named colors defined by the W3C CSS Color Module Level 4 specification — usable directly in CSS as keywords like 'crimson' or 'rebeccapurple'. See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Khaki as a background.

Black text on this color

Sample text · 16.40 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 1.28 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Khaki

An 11-step tonal scale derived from Khaki (#F0E68C). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #FEFDF6

50

#FEFDF6

#FEFDF6

Copied #FDFBED

100

#FDFBED

#FDFBED

Copied #FAF7DA

200

#FAF7DA

#FAF7DA

Copied #F8F3C6

300

#F8F3C6

#F8F3C6

Copied #F4ECA9

400

#F4ECA9

#F4ECA9

Copied #F0E68C

500

#F0E68C

#F0E68C

Copied #CCC477

600

#CCC477

#CCC477

Copied #9C965B

700

#9C965B

#9C965B

Copied #6C683F

800

#6C683F

#6C683F

Copied #3C3A23

900

#3C3A23

#3C3A23

Copied #1D1C11

950

#1D1C11

#1D1C11

Lighter tints (mixed with white)

Copied #F2EAA4

15%

#F2EAA4

Copied #F5EEB9

30%

#F5EEB9

Copied #F7F2CB

45%

#F7F2CB

Copied #F9F5DB

60%

#F9F5DB

Copied #FBF9E9

75%

#FBF9E9

Darker shades (mixed with black)

Copied #DFD682

15%

#DFD682

Copied #CDC477

30%

#CDC477

Copied #B8B06A

45%

#B8B06A

Copied #9F995B

60%

#9F995B

Copied #817B48

75%

#817B48

Color harmonies for Khaki

Classic color-theory harmonies derived from rotating the hue of Khaki. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #F0E68C

#F0E68C

#F0E68C

Copied #8E98F0

#8E98F0

#8E98F0

Triadic

Three colors 120° apart

Copied #F0E68C

#F0E68C

#F0E68C

Copied #8EF0E7

#8EF0E7

#8EF0E7

Copied #E78EF0

#E78EF0

#E78EF0

Analogous

Two neighbors ±30° on the wheel

Copied #F0B58E

#F0B58E

#F0B58E

Copied #F0E68C

#F0E68C

#F0E68C

Copied #C9F08E

#C9F08E

#C9F08E

Split-complementary

Base + two colors flanking its complement

Copied #F0E68C

#F0E68C

#F0E68C

Copied #8EC9F0

#8EC9F0

#8EC9F0

Copied #B58EF0

#B58EF0

#B58EF0

Tetradic

Two complementary pairs

Copied #F0E68C

#F0E68C

#F0E68C

Copied #98F08E

#98F08E

#98F08E

Copied #8E98F0

#8E98F0

#8E98F0

Copied #E78EF0

#E78EF0

#E78EF0

Square

Four colors evenly spaced 90° apart

Copied #F0E68C

#F0E68C

#F0E68C

Copied #8EF0B5

#8EF0B5

#8EF0B5

Copied #8E98F0

#8E98F0

#8E98F0

Copied #F08EC9

#F08EC9

#F08EC9

Khaki in every color space

Full conversion of Khaki across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#F0E68C

RGB

rgb(240, 230, 140)

CMYK

cmyk(0%, 4%, 42%, 6%)

HSL

hsl(54, 77%, 75%)

HSV

hsv(54, 42%, 94%)

HWB

hwb(54 55% 6%)

CIE Lab

lab(90.3 -9.0 45.0)

OKLCH

oklch(91.3% 0.112 102.8)

XYZ (D65)

xyz(68.97, 77.01, 36.04)

Copy-ready code for Khaki

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #F0E68C;
background-color: #F0E68C;

CSS variable

:root {
  --color-khaki: #F0E68C;
}

Tailwind config

// tailwind.config.js
colors: {
  'khaki': '#F0E68C',
}

Sass

$color-khaki: #F0E68C;

Swift UIColor

UIColor(red: 0.941, green: 0.902, blue: 0.549, alpha: 1.0)

Android XML

<color name="khaki">#F0E68C</color>

Closest match in every color system

The nearest Khaki equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in CSS Named Colors

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #E6D690

RAL 1015

#E6D690

Light ivory

Copied #E1CC4F

RAL 1014

#E1CC4F

Ivory

Copied #F8F32B

RAL 1018

#F8F32B

Zinc yellow

Copied #F5D033

RAL 1017

#F5D033

Saffron yellow

Copied #F3DA0B

RAL 1021

#F3DA0B

Rape yellow

Copied #BEBD7F

RAL 1000

#BEBD7F

Green beige

FAQ about Khaki

What is the HEX code for Khaki?

Khaki (khaki) has the HEX code #F0E68C. In RGB it is rgb(240, 230, 140), and in CMYK it is cmyk(0%, 4%, 42%, 6%).

What is the OKLCH value of Khaki?

Khaki converts to oklch(0.913 0.112 102.8). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Khaki accessible for body text?

Used as a background, Khaki has a contrast ratio of 16.40:1 with black text and 1.28:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use black text and verify in real UI context.

What is the closest Pantone to Khaki?

The closest Pantone reference to Khaki by ΔE2000 perceptual distance is Pantone 100 C (#F4ED7C). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Khaki?

The closest RAL Classic reference to Khaki by ΔE2000 distance is RAL 1015 (Light ivory, #E6D690). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Khaki?

The complementary color (180° opposite on the HSL color wheel) of Khaki is #8E98F0. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

CSS Named Colors (CSS Color Module Level 4)

The 147 named colors defined by the W3C CSS Color Module Level 4 specification. Origin: VGA (16) + X11 (rest) + 'rebeccapurple'. Use as a reference for web color names that all browsers natively support. Names like 'crimson' or 'rebeccapurple' work as CSS values without any framework.

Source type
derived
Confidence
high
License
W3C permissive document license
Last reviewed
2026-05-24

Workflow tags

css
web-standard
named-keyword
yellow

CSS named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.

CSS Named Colors · Khaki — #F0E68C | PantoneTools