#8E7F20#8E7F20
#8E7F20 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.3% C 0.112 H 99.9°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).
Color values
| HEX | #8E7F20 |
|---|---|
| RGB | rgb(142, 127, 32) |
| HSL | hsl(52, 63%, 34%) |
| HSV | hsv(52, 77%, 56%) |
| CMYK | cmyk(0%, 10.6%, 77.5%, 44.3%) |
| CIE-LAB | lab(52.99, -4.97, 50.18) |
| CIE-LCH | lch(52.99, 50.43, 95.66°) |
| OKLab | oklab(59.3% -0.0191 0.11) |
| OKLCH | oklch(59.3% 0.112 99.9) |
| XYZ | xyz(19.0063, 21.0347, 4.4252) |
| Luminance | 0.2103 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 3.29
Hazel
#8E7618
ΔE00 4.09
Olive
#808000
ΔE00 4.98
Puke Brown
#947706
ΔE00 5.07
Diarrhea
#9F8303
ΔE00 5.21
Poo
#8F7303
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E7F20 #202F8E
analogous
#8E4820 #8E7F20 #668E20
triadic
#8E7F20 #208E7F #7F208E
tetradic
#8E7F20 #208E48 #202F8E #8E2066
square
#8E7F20 #208E48 #202F8E #8E2066
split-complementary
#8E7F20 #20668E #48208E
monochromatic
#2A2609 #5C5215 #8E7F20 #C0AC2B #D8C551
Accessibility & contrast
On white
4.03
#8E7F20 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.21
#8E7F20 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E7F20
5.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E7F20 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E7F20 | 1.00 | 4.03 | 5.21 | 5.21 |
| #FFFFFF | 4.03 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.21 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.21 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8C7B0D
Deuteranopia (green-blind)
#908127
Tritanopia (blue-blind)
#99756D
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8e7f20; /* rgb */ color: rgb(142, 127, 32); /* oklch */ color: oklch(59.3% 0.112 99.9);
Tailwind
colors: {
custom: {
50: '#b3a363',
500: '#8e7f20',
950: '#000000',
},
}SCSS
$custom: #8e7f20; $custom-light: #b3a363; $custom-dark: #000000;
JSON
{
"hex": "#8e7f20",
"rgb": {
"r": 142,
"g": 127,
"b": 32
},
"hsl": {
"h": 51.818,
"s": 63.218,
"l": 34.118
},
"oklch": {
"l": 0.59304,
"c": 0.11164,
"h": 99.9
},
"luminance": 0.21034
}Semantic roles & 50–950 ramp
primary
#8E7F20
secondary
#4F5EBB
accent
#58E642
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A