#8E841F#8E841F
#8E841F is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.4% C 0.117 H 103.5°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).
Color values
| HEX | #8E841F |
|---|---|
| RGB | rgb(142, 132, 31) |
| HSL | hsl(55, 64%, 34%) |
| HSV | hsv(55, 78%, 56%) |
| CMYK | cmyk(0%, 7%, 78.2%, 44.3%) |
| CIE-LAB | lab(54.40, -7.77, 51.85) |
| CIE-LCH | lch(54.40, 52.43, 98.53°) |
| OKLab | oklab(60.42% -0.0271 0.1133) |
| OKLCH | oklch(60.42% 0.117 103.5) |
| XYZ | xyz(19.6548, 22.3531, 4.5753) |
| Luminance | 0.2235 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.94
Baby Poop
#937C00
ΔE00 4.84
Diarrhea
#9F8303
ΔE00 5.93
Hazel
#8E7618
ΔE00 6.32
Shit Green
#758000
ΔE00 6.73
Puke Brown
#947706
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E841F #1F298E
analogous
#8E4D1F #8E841F #618E1F
triadic
#8E841F #1F8E84 #841F8E
tetradic
#8E841F #1F8E4D #1F298E #8E1F61
square
#8E841F #1F8E4D #1F298E #8E1F61
split-complementary
#8E841F #1F618E #4D1F8E
monochromatic
#2A2709 #5C5514 #8E841F #C0B32A #D9CC4F
Accessibility & contrast
On white
3.84
#8E841F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.47
#8E841F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E841F
5.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E841F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E841F | 1.00 | 3.84 | 5.47 | 5.47 |
| #FFFFFF | 3.84 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.47 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.47 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#917F07
Deuteranopia (green-blind)
#948427
Tritanopia (blue-blind)
#997A71
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #8e841f; /* rgb */ color: rgb(142, 132, 31); /* oklch */ color: oklch(60.4% 0.117 103.5);
Tailwind
colors: {
custom: {
50: '#b3a764',
500: '#8e841f',
950: '#000000',
},
}SCSS
$custom: #8e841f; $custom-light: #b3a764; $custom-dark: #000000;
JSON
{
"hex": "#8e841f",
"rgb": {
"r": 142,
"g": 132,
"b": 31
},
"hsl": {
"h": 54.595,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.60424,
"c": 0.11654,
"h": 103.5
},
"luminance": 0.22352
}Semantic roles & 50–950 ramp
primary
#8E841F
secondary
#4D57BB
accent
#50E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A