Skip to content
PantoneTools
yellow
X11 named colors

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

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

White text on this color

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

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.

Copied #F6F5F1

50

#F6F5F1

#F6F5F1

Copied #ECECE3

100

#ECECE3

#ECECE3

Copied #DAD8C6

200

#DAD8C6

#DAD8C6

Copied #C5C3A7

300

#C5C3A7

#C5C3A7

Copied #A8A47A

400

#A8A47A

#A8A47A

Copied #8B864E

500

#8B864E

#8B864E

Copied #767242

600

#767242

#767242

Copied #5A5733

700

#5A5733

#5A5733

Copied #3F3C23

800

#3F3C23

#3F3C23

Copied #232214

900

#232214

#232214

Copied #111009

950

#111009

#111009

Lighter tints (mixed with white)

Copied #A4A080

15%

#A4A080

Copied #B8B6A0

30%

#B8B6A0

Copied #CAC9BA

45%

#CAC9BA

Copied #DAD9D0

60%

#DAD9D0

Copied #E9E8E3

75%

#E9E8E3

Darker shades (mixed with black)

Copied #817C48

15%

#817C48

Copied #767241

30%

#767241

Copied #69653A

45%

#69653A

Copied #5A5731

60%

#5A5731

Copied #484526

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

Copied #8B864E

#8B864E

#8B864E

Copied #4F548C

#4F548C

#4F548C

Triadic

Three colors 120° apart

Copied #8B864E

#8B864E

#8B864E

Copied #4F8C87

#4F8C87

#4F8C87

Copied #874F8C

#874F8C

#874F8C

Analogous

Two neighbors ±30° on the wheel

Copied #8C694F

#8C694F

#8C694F

Copied #8B864E

#8B864E

#8B864E

Copied #738C4F

#738C4F

#738C4F

Split-complementary

Base + two colors flanking its complement

Copied #8B864E

#8B864E

#8B864E

Copied #4F738C

#4F738C

#4F738C

Copied #694F8C

#694F8C

#694F8C

Tetradic

Two complementary pairs

Copied #8B864E

#8B864E

#8B864E

Copied #548C4F

#548C4F

#548C4F

Copied #4F548C

#4F548C

#4F548C

Copied #874F8C

#874F8C

#874F8C

Square

Four colors evenly spaced 90° apart

Copied #8B864E

#8B864E

#8B864E

Copied #4F8C69

#4F8C69

#4F8C69

Copied #4F548C

#4F548C

#4F548C

Copied #8C4F73

#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.

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 #8F8B66

RAL 7034

#8F8B66

Yellow grey

Copied #9E9764

RAL 1019

#9E9764

Grey beige

Copied #999950

RAL 1020

#999950

Olive yellow

Copied #817F68

RAL 7002

#817F68

Olive grey

Copied #AEA04B

RAL 1024

#AEA04B

Ochre yellow

Copied #826C34

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
named-color
legacy
yellow

X11 colors are sRGB digital values from a 1980s color system. For print, convert to a process-appropriate color and proof against substrate.

X11 named colors · Khaki4 — #8B864E | PantoneTools