#8E7D22#8E7D22
#8E7D22 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.9% C 0.109 H 98.2°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #8E7D22 |
|---|---|
| RGB | rgb(142, 125, 34) |
| HSL | hsl(51, 61%, 35%) |
| HSV | hsv(51, 76%, 56%) |
| CMYK | cmyk(0%, 12%, 76.1%, 44.3%) |
| CIE-LAB | lab(52.44, -3.77, 48.91) |
| CIE-LCH | lch(52.44, 49.05, 94.41°) |
| OKLab | oklab(58.87% -0.0155 0.1077) |
| OKLCH | oklch(58.87% 0.109 98.2) |
| XYZ | xyz(18.7786, 20.5345, 4.4875) |
| Luminance | 0.2053 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 3.08
Hazel
#8E7618
ΔE00 3.19
Puke Brown
#947706
ΔE00 4.38
Poo
#8F7303
ΔE00 4.91
Diarrhea
#9F8303
ΔE00 5.27
Yellowish Brown
#9B7A01
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E7D22 #22338E
analogous
#8E4722 #8E7D22 #698E22
triadic
#8E7D22 #228E7D #7D228E
tetradic
#8E7D22 #228E47 #22338E #8E2269
square
#8E7D22 #228E47 #22338E #8E2269
split-complementary
#8E7D22 #22698E #47228E
monochromatic
#2B260A #5D5216 #8E7D22 #BFA82E #D6C254
Accessibility & contrast
On white
4.11
#8E7D22 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.11
#8E7D22 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E7D22
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E7D22 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E7D22 | 1.00 | 4.11 | 5.11 | 5.11 |
| #FFFFFF | 4.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7A12
Deuteranopia (green-blind)
#8E8028
Tritanopia (blue-blind)
#9A736B
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #8e7d22; /* rgb */ color: rgb(142, 125, 34); /* oklch */ color: oklch(58.9% 0.109 98.2);
Tailwind
colors: {
custom: {
50: '#b3a264',
500: '#8e7d22',
950: '#000000',
},
}SCSS
$custom: #8e7d22; $custom-light: #b3a264; $custom-dark: #000000;
JSON
{
"hex": "#8e7d22",
"rgb": {
"r": 142,
"g": 125,
"b": 34
},
"hsl": {
"h": 50.556,
"s": 61.364,
"l": 34.51
},
"oklch": {
"l": 0.58871,
"c": 0.10881,
"h": 98.2
},
"luminance": 0.20534
}Semantic roles & 50–950 ramp
primary
#8E7D22
secondary
#5262BA
accent
#5DE443
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A