Khaki4
khaki4 · #8B864E
HEX
#8B864E
RGB
rgb(139, 134, 78)
CMYK
cmyk(0%, 4%, 44%, 45%)
HSL
hsl(55, 28%, 43%)
LAB
lab(55.2, -6.7, 30.8)
What is Khaki4?
Khaki4 is the khaki4 reference in the X11 named colors. Its sRGB value is #8B864E (rgb 139, 134, 78). It sits in the yellow family. Historical X Window System color names — the numbered 1-4 lightness variants of the classic xorg-server rgb.txt palette. See disclaimer for accuracy and trademark notes.
Accessibility
WCAG 2.1 contrast checks for Khaki4 as a background.
Black text on this color
White text on this color
Shades, tints & tonal scale of Khaki4
An 11-step tonal scale derived from Khaki4 (#8B864E). 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
#F6F5F1
#F6F5F1
100
#ECECE3
#ECECE3
200
#DAD8C6
#DAD8C6
300
#C5C3A7
#C5C3A7
400
#A8A47A
#A8A47A
500
#8B864E
#8B864E
600
#767242
#767242
700
#5A5733
#5A5733
800
#3F3C23
#3F3C23
900
#232214
#232214
950
#111009
#111009
Lighter tints (mixed with white)
15%
#A4A080
30%
#B8B6A0
45%
#CAC9BA
60%
#DAD9D0
75%
#E9E8E3
Darker shades (mixed with black)
15%
#817C48
30%
#767241
45%
#69653A
60%
#5A5731
75%
#484526
Color harmonies for Khaki4
Classic color-theory harmonies derived from rotating the hue of Khaki4. Use these to build accent palettes, brand systems, and accessible UI color pairings.
Complementary
180° opposite — strongest contrast
#8B864E
#8B864E
#4F548C
#4F548C
Triadic
Three colors 120° apart
#8B864E
#8B864E
#4F8C87
#4F8C87
#874F8C
#874F8C
Analogous
Two neighbors ±30° on the wheel
#8C694F
#8C694F
#8B864E
#8B864E
#738C4F
#738C4F
Split-complementary
Base + two colors flanking its complement
#8B864E
#8B864E
#4F738C
#4F738C
#694F8C
#694F8C
Tetradic
Two complementary pairs
#8B864E
#8B864E
#548C4F
#548C4F
#4F548C
#4F548C
#874F8C
#874F8C
Square
Four colors evenly spaced 90° apart
#8B864E
#8B864E
#4F8C69
#4F8C69
#4F548C
#4F548C
#8C4F73
#8C4F73
Khaki4 in every color space
Full conversion of Khaki4 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
#8B864E
RGB
rgb(139, 134, 78)
CMYK
cmyk(0%, 4%, 44%, 45%)
HSL
hsl(55, 28%, 43%)
HSV
hsv(55, 44%, 55%)
HWB
hwb(55 31% 45%)
CIE Lab
lab(55.2 -6.7 30.8)
OKLCH
oklch(61.1% 0.077 104.0)
XYZ (D65)
xyz(20.55, 23.09, 10.58)
Copy-ready code for Khaki4
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: #8B864E;
background-color: #8B864E;CSS variable
:root {
--color-khaki4: #8B864E;
}Tailwind config
// tailwind.config.js
colors: {
'khaki4': '#8B864E',
}Sass
$color-khaki4: #8B864E;Swift UIColor
UIColor(red: 0.545, green: 0.525, blue: 0.306, alpha: 1.0)Android XML
<color name="khaki4">#8B864E</color>Closest match in every color system
The nearest Khaki4 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 X11 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 7034
#8F8B66
Yellow grey
RAL 1019
#9E9764
Grey beige
RAL 1020
#999950
Olive yellow
RAL 7002
#817F68
Olive grey
RAL 1024
#AEA04B
Ochre yellow
RAL 8000
#826C34
Green brown
FAQ about Khaki4
What is the HEX code for Khaki4?
Khaki4 (khaki4) has the HEX code #8B864E. In RGB it is rgb(139, 134, 78), and in CMYK it is cmyk(0%, 4%, 44%, 45%).
What is the OKLCH value of Khaki4?
Khaki4 converts to oklch(0.611 0.077 104.0). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.
Is Khaki4 accessible for body text?
Used as a background, Khaki4 has a contrast ratio of 5.62:1 with black text and 3.74: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 Khaki4?
The closest Pantone reference to Khaki4 by ΔE2000 perceptual distance is Pantone 875 C (#84754E). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.
What is the closest RAL color to Khaki4?
The closest RAL Classic reference to Khaki4 by ΔE2000 distance is RAL 7034 (Yellow grey, #8F8B66). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.
What is the complementary color of Khaki4?
The complementary color (180° opposite on the HSL color wheel) of Khaki4 is #4F548C. Use it for high-contrast accents, error states, or call-to-action pairings.
Data provenance & source
X11 named colors (xorg rgb.txt)
The historical X11 color name list shipped in the xorg-server rgb.txt file. Roughly 550 entries covering classic computing color names like 'PapayaWhip', 'MediumAquamarine', and 'DarkSlateGray'. Many CSS named colors originate here. Use as a reference for legacy and creative color names. Most modern CSS implementations accept these names directly.
- Source type
- derived
- Confidence
- high
- License
- MIT/X11 license (X Consortium)
- Last reviewed
- 2026-05-24
Workflow tags
X11 colors are sRGB digital values from a 1980s color system. For print, convert to a process-appropriate color and proof against substrate.