#8E7E1F#8E7E1F
#8E7E1F is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.1% C 0.111 H 99.2°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #8E7E1F |
|---|---|
| RGB | rgb(142, 126, 31) |
| HSL | hsl(51, 64%, 34%) |
| HSV | hsv(51, 78%, 56%) |
| CMYK | cmyk(0%, 11.3%, 78.2%, 44.3%) |
| CIE-LAB | lab(52.70, -4.46, 50.28) |
| CIE-LCH | lch(52.70, 50.47, 95.07°) |
| OKLab | oklab(59.07% -0.0178 0.11) |
| OKLCH | oklch(59.07% 0.111 99.2) |
| XYZ | xyz(18.8644, 20.7724, 4.3119) |
| Luminance | 0.2077 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 3.00
Hazel
#8E7618
ΔE00 3.64
Puke Brown
#947706
ΔE00 4.66
Diarrhea
#9F8303
ΔE00 5.11
Olive
#808000
ΔE00 5.24
Poo
#8F7303
ΔE00 5.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E7E1F #1F2F8E
analogous
#8E471F #8E7E1F #678E1F
triadic
#8E7E1F #1F8E7E #7E1F8E
tetradic
#8E7E1F #1F8E47 #1F2F8E #8E1F67
square
#8E7E1F #1F8E47 #1F2F8E #8E1F67
split-complementary
#8E7E1F #1F678E #471F8E
monochromatic
#2A2509 #5C5114 #8E7E1F #C0AB2A #D9C54F
Accessibility & contrast
On white
4.07
#8E7E1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.15
#8E7E1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E7E1F
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E7E1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E7E1F | 1.00 | 4.07 | 5.15 | 5.15 |
| #FFFFFF | 4.07 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7B0B
Deuteranopia (green-blind)
#8F8026
Tritanopia (blue-blind)
#9A746C
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8e7e1f; /* rgb */ color: rgb(142, 126, 31); /* oklch */ color: oklch(59.1% 0.111 99.2);
Tailwind
colors: {
custom: {
50: '#b3a363',
500: '#8e7e1f',
950: '#000000',
},
}SCSS
$custom: #8e7e1f; $custom-light: #b3a363; $custom-dark: #000000;
JSON
{
"hex": "#8e7e1f",
"rgb": {
"r": 142,
"g": 126,
"b": 31
},
"hsl": {
"h": 51.351,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.59074,
"c": 0.11142,
"h": 99.2
},
"luminance": 0.20771
}Semantic roles & 50–950 ramp
primary
#8E7E1F
secondary
#4D5DBB
accent
#59E741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A