#8E7F2F#8E7F2F
#8E7F2F is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.4% C 0.101 H 98.6°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).
Color values
| HEX | #8E7F2F |
|---|---|
| RGB | rgb(142, 127, 47) |
| HSL | hsl(51, 50%, 37%) |
| HSV | hsv(51, 67%, 56%) |
| CMYK | cmyk(0%, 10.6%, 66.9%, 44.3%) |
| CIE-LAB | lab(53.10, -4.16, 44.08) |
| CIE-LCH | lch(53.10, 44.28, 95.39°) |
| OKLab | oklab(59.43% -0.0151 0.0999) |
| OKLCH | oklch(59.43% 0.101 98.6) |
| XYZ | xyz(19.2586, 21.1356, 5.7539) |
| Luminance | 0.2114 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 4.43
Baby Poop
#937C00
ΔE00 4.71
Puke Brown
#947706
ΔE00 5.77
Olive
#808000
ΔE00 6.11
Diarrhea
#9F8303
ΔE00 6.26
Drab
#828344
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E7F2F #2F3E8E
analogous
#8E4F2F #8E7F2F #6E8E2F
triadic
#8E7F2F #2F8E7F #7F2F8E
tetradic
#8E7F2F #2F8E4F #2F3E8E #8E2F6E
square
#8E7F2F #2F8E4F #2F3E8E #8E2F6E
split-complementary
#8E7F2F #2F6E8E #4F2F8E
monochromatic
#322D11 #605620 #8E7F2F #BCA83E #CEBE6A
Accessibility & contrast
On white
4.02
#8E7F2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.23
#8E7F2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E7F2F
5.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E7F2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E7F2F | 1.00 | 4.02 | 5.23 | 5.23 |
| #FFFFFF | 4.02 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.23 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.23 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7C25
Deuteranopia (green-blind)
#8F8133
Tritanopia (blue-blind)
#99766E
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #8e7f2f; /* rgb */ color: rgb(142, 127, 47); /* oklch */ color: oklch(59.4% 0.101 98.6);
Tailwind
colors: {
custom: {
50: '#b2a36c',
500: '#8e7f2f',
950: '#000000',
},
}SCSS
$custom: #8e7f2f; $custom-light: #b2a36c; $custom-dark: #000000;
JSON
{
"hex": "#8e7f2f",
"rgb": {
"r": 142,
"g": 127,
"b": 47
},
"hsl": {
"h": 50.526,
"s": 50.265,
"l": 37.059
},
"oklch": {
"l": 0.59426,
"c": 0.10104,
"h": 98.6
},
"luminance": 0.21135
}Semantic roles & 50–950 ramp
primary
#8E7F2F
secondary
#6471B5
accent
#64DA4E
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F07
muted
#807F7A