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
White text on this color
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.
50
#FEFDF6
#FEFDF6
100
#FDFBED
#FDFBED
200
#FAF7DA
#FAF7DA
300
#F8F3C6
#F8F3C6
400
#F4ECA9
#F4ECA9
500
#F0E68C
#F0E68C
600
#CCC477
#CCC477
700
#9C965B
#9C965B
800
#6C683F
#6C683F
900
#3C3A23
#3C3A23
950
#1D1C11
#1D1C11
Lighter tints (mixed with white)
15%
#F2EAA4
30%
#F5EEB9
45%
#F7F2CB
60%
#F9F5DB
75%
#FBF9E9
Darker shades (mixed with black)
15%
#DFD682
30%
#CDC477
45%
#B8B06A
60%
#9F995B
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
#F0E68C
#F0E68C
#8E98F0
#8E98F0
Triadic
Three colors 120° apart
#F0E68C
#F0E68C
#8EF0E7
#8EF0E7
#E78EF0
#E78EF0
Analogous
Two neighbors ±30° on the wheel
#F0B58E
#F0B58E
#F0E68C
#F0E68C
#C9F08E
#C9F08E
Split-complementary
Base + two colors flanking its complement
#F0E68C
#F0E68C
#8EC9F0
#8EC9F0
#B58EF0
#B58EF0
Tetradic
Two complementary pairs
#F0E68C
#F0E68C
#98F08E
#98F08E
#8E98F0
#8E98F0
#E78EF0
#E78EF0
Square
Four colors evenly spaced 90° apart
#F0E68C
#F0E68C
#8EF0B5
#8EF0B5
#8E98F0
#8E98F0
#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.
Closest Pantone matches
Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.
Closest RAL Classic matches
Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.
RAL 1015
#E6D690
Light ivory
RAL 1014
#E1CC4F
Ivory
RAL 1018
#F8F32B
Zinc yellow
RAL 1017
#F5D033
Saffron yellow
RAL 1021
#F3DA0B
Rape yellow
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 named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.