Yellow4
yellow4 · #8B8B00
HEX
#8B8B00
RGB
rgb(139, 139, 0)
CMYK
cmyk(0%, 0%, 100%, 45%)
HSL
hsl(60, 100%, 27%)
LAB
lab(56.0, -13.7, 60.2)
What is Yellow4?
Yellow4 is the yellow4 reference in the X11 named colors. Its sRGB value is #8B8B00 (rgb 139, 139, 0). 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 Yellow4 as a background.
Black text on this color
White text on this color
Shades, tints & tonal scale of Yellow4
An 11-step tonal scale derived from Yellow4 (#8B8B00). 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
#F6F6EB
#F6F6EB
100
#ECECD6
#ECECD6
200
#DADAAD
#DADAAD
300
#C5C580
#C5C580
400
#A8A840
#A8A840
500
#8B8B00
#8B8B00
600
#767600
#767600
700
#5A5A00
#5A5A00
800
#3F3F00
#3F3F00
900
#232300
#232300
950
#111100
#111100
Lighter tints (mixed with white)
15%
#A4A46C
30%
#B8B895
45%
#CACAB3
60%
#DADACB
75%
#E9E9E1
Darker shades (mixed with black)
15%
#818100
30%
#767600
45%
#696900
60%
#5A5A00
75%
#484800
Color harmonies for Yellow4
Classic color-theory harmonies derived from rotating the hue of Yellow4. Use these to build accent palettes, brand systems, and accessible UI color pairings.
Complementary
180° opposite — strongest contrast
#8B8B00
#8B8B00
#00008A
#00008A
Triadic
Three colors 120° apart
#8B8B00
#8B8B00
#008A8A
#008A8A
#8A008A
#8A008A
Analogous
Two neighbors ±30° on the wheel
#8A4500
#8A4500
#8B8B00
#8B8B00
#458A00
#458A00
Split-complementary
Base + two colors flanking its complement
#8B8B00
#8B8B00
#00458A
#00458A
#45008A
#45008A
Tetradic
Two complementary pairs
#8B8B00
#8B8B00
#008A00
#008A00
#00008A
#00008A
#8A008A
#8A008A
Square
Four colors evenly spaced 90° apart
#8B8B00
#8B8B00
#008A45
#008A45
#00008A
#00008A
#8A0045
#8A0045
Yellow4 in every color space
Full conversion of Yellow4 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
#8B8B00
RGB
rgb(139, 139, 0)
CMYK
cmyk(0%, 0%, 100%, 45%)
HSL
hsl(60, 100%, 27%)
HSV
hsv(60, 100%, 55%)
HWB
hwb(60 0% 45%)
CIE Lab
lab(56.0 -13.7 60.2)
OKLCH
oklch(61.6% 0.134 109.8)
XYZ (D65)
xyz(19.88, 23.95, 3.58)
Copy-ready code for Yellow4
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: #8B8B00;
background-color: #8B8B00;CSS variable
:root {
--color-yellow4: #8B8B00;
}Tailwind config
// tailwind.config.js
colors: {
'yellow4': '#8B8B00',
}Sass
$color-yellow4: #8B8B00;Swift UIColor
UIColor(red: 0.545, green: 0.545, blue: 0.000, alpha: 1.0)Android XML
<color name="yellow4">#8B8B00</color>Closest match in every color system
The nearest Yellow4 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 1027
#9D9101
Curry
RAL 1020
#999950
Olive yellow
RAL 1024
#AEA04B
Ochre yellow
RAL 1005
#A98307
Honey yellow
RAL 1019
#9E9764
Grey beige
RAL 7034
#8F8B66
Yellow grey
FAQ about Yellow4
What is the HEX code for Yellow4?
Yellow4 (yellow4) has the HEX code #8B8B00. In RGB it is rgb(139, 139, 0), and in CMYK it is cmyk(0%, 0%, 100%, 45%).
What is the OKLCH value of Yellow4?
Yellow4 converts to oklch(0.616 0.134 109.8). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.
Is Yellow4 accessible for body text?
Used as a background, Yellow4 has a contrast ratio of 5.79:1 with black text and 3.63: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 Yellow4?
The closest Pantone reference to Yellow4 by ΔE2000 perceptual distance is Pantone 385 C (#76881D). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.
What is the closest RAL color to Yellow4?
The closest RAL Classic reference to Yellow4 by ΔE2000 distance is RAL 1027 (Curry, #9D9101). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.
What is the complementary color of Yellow4?
The complementary color (180° opposite on the HSL color wheel) of Yellow4 is #00008A. 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.