#8E7E2F#8E7E2F
#8E7E2F is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.2% C 0.100 H 97.8°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #8E7E2F |
|---|---|
| RGB | rgb(142, 126, 47) |
| HSL | hsl(50, 50%, 37%) |
| HSV | hsv(50, 67%, 56%) |
| CMYK | cmyk(0%, 11.3%, 66.9%, 44.3%) |
| CIE-LAB | lab(52.82, -3.60, 43.78) |
| CIE-LCH | lch(52.82, 43.93, 94.70°) |
| OKLab | oklab(59.2% -0.0135 0.0993) |
| OKLCH | oklch(59.2% 0.1 97.8) |
| XYZ | xyz(19.1301, 20.8786, 5.7111) |
| Luminance | 0.2088 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 4.07
Baby Poop
#937C00
ΔE00 4.62
Puke Brown
#947706
ΔE00 5.47
Poo
#8F7303
ΔE00 5.94
Diarrhea
#9F8303
ΔE00 6.27
Ugly Brown
#7D7103
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E7E2F #2F3F8E
analogous
#8E4F2F #8E7E2F #6F8E2F
triadic
#8E7E2F #2F8E7E #7E2F8E
tetradic
#8E7E2F #2F8E4F #2F3F8E #8E2F6F
square
#8E7E2F #2F8E4F #2F3F8E #8E2F6F
split-complementary
#8E7E2F #2F6F8E #4F2F8E
monochromatic
#322C11 #605520 #8E7E2F #BCA73E #CEBD6A
Accessibility & contrast
On white
4.06
#8E7E2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.18
#8E7E2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E7E2F
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E7E2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E7E2F | 1.00 | 4.06 | 5.18 | 5.18 |
| #FFFFFF | 4.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7B25
Deuteranopia (green-blind)
#8E8033
Tritanopia (blue-blind)
#99756D
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8e7e2f; /* rgb */ color: rgb(142, 126, 47); /* oklch */ color: oklch(59.2% 0.100 97.8);
Tailwind
colors: {
custom: {
50: '#b2a36c',
500: '#8e7e2f',
950: '#000000',
},
}SCSS
$custom: #8e7e2f; $custom-light: #b2a36c; $custom-dark: #000000;
JSON
{
"hex": "#8e7e2f",
"rgb": {
"r": 142,
"g": 126,
"b": 47
},
"hsl": {
"h": 49.895,
"s": 50.265,
"l": 37.059
},
"oklch": {
"l": 0.59204,
"c": 0.10019,
"h": 97.8
},
"luminance": 0.20878
}Semantic roles & 50–950 ramp
primary
#8E7E2F
secondary
#6472B5
accent
#66DA4E
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F07
muted
#807E7A