#8E871B#8E871B
#8E871B is a mid, vivid yellow. Relative luminance 0.232; OKLCH L 61.1% C 0.121 H 105.5°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).
Color values
| HEX | #8E871B |
|---|---|
| RGB | rgb(142, 135, 27) |
| HSL | hsl(56, 68%, 33%) |
| HSV | hsv(56, 81%, 56%) |
| CMYK | cmyk(0%, 4.9%, 81%, 44.3%) |
| CIE-LAB | lab(55.24, -9.56, 53.92) |
| CIE-LCH | lch(55.24, 54.76, 100.06°) |
| OKLab | oklab(61.08% -0.0325 0.117) |
| OKLCH | oklch(61.08% 0.121 105.5) |
| XYZ | xyz(20.0180, 23.1586, 4.4523) |
| Luminance | 0.2316 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.79
Baby Poop
#937C00
ΔE00 5.89
Shit Green
#758000
ΔE00 6.37
Diarrhea
#9F8303
ΔE00 6.59
Baby Poop Green
#8F9805
ΔE00 6.65
Pea Soup
#929901
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E871B #1B228E
analogous
#8E4D1B #8E871B #5B8E1B
triadic
#8E871B #1B8E87 #871B8E
tetradic
#8E871B #1B8E4D #1B228E #8E1B5B
square
#8E871B #1B8E4D #1B228E #8E1B5B
split-complementary
#8E871B #1B5B8E #4D1B8E
monochromatic
#272507 #5B5611 #8E871B #C1B825 #DCD347
Accessibility & contrast
On white
3.73
#8E871B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.63
#8E871B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E871B
5.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E871B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E871B | 1.00 | 3.73 | 5.63 | 5.63 |
| #FFFFFF | 3.73 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#968624
Tritanopia (blue-blind)
#997D73
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #8e871b; /* rgb */ color: rgb(142, 135, 27); /* oklch */ color: oklch(61.1% 0.121 105.5);
Tailwind
colors: {
custom: {
50: '#b3a962',
500: '#8e871b',
950: '#000000',
},
}SCSS
$custom: #8e871b; $custom-light: #b3a962; $custom-dark: #000000;
JSON
{
"hex": "#8e871b",
"rgb": {
"r": 142,
"g": 135,
"b": 27
},
"hsl": {
"h": 56.348,
"s": 68.047,
"l": 33.137
},
"oklch": {
"l": 0.61083,
"c": 0.12141,
"h": 105.5
},
"luminance": 0.23158
}Semantic roles & 50–950 ramp
primary
#8E871B
secondary
#474EBE
accent
#47EB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A