#8E7F17#8E7F17
#8E7F17 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.3% C 0.116 H 100.4°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #8E7F17 |
|---|---|
| RGB | rgb(142, 127, 23) |
| HSL | hsl(52, 72%, 32%) |
| HSV | hsv(52, 84%, 56%) |
| CMYK | cmyk(0%, 10.6%, 83.8%, 44.3%) |
| CIE-LAB | lab(52.94, -5.32, 53.12) |
| CIE-LCH | lch(52.94, 53.39, 95.72°) |
| OKLab | oklab(59.25% -0.021 0.1144) |
| OKLCH | oklch(59.25% 0.116 100.4) |
| XYZ | xyz(18.9003, 20.9923, 3.8668) |
| Luminance | 0.2099 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.84
Hazel
#8E7618
ΔE00 4.22
Olive
#808000
ΔE00 4.68
Diarrhea
#9F8303
ΔE00 4.89
Puke Brown
#947706
ΔE00 4.95
Poo
#8F7303
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E7F17 #17268E
analogous
#8E4417 #8E7F17 #628E17
triadic
#8E7F17 #178E7F #7F178E
tetradic
#8E7F17 #178E44 #17268E #8E1762
square
#8E7F17 #178E44 #17268E #8E1762
split-complementary
#8E7F17 #17628E #44178E
monochromatic
#252106 #59500E #8E7F17 #C3AE20 #E0CC3F
Accessibility & contrast
On white
4.04
#8E7F17 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.20
#8E7F17 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E7F17
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E7F17 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E7F17 | 1.00 | 4.04 | 5.20 | 5.20 |
| #FFFFFF | 4.04 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.20 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.20 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#908120
Tritanopia (blue-blind)
#9A756C
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8e7f17; /* rgb */ color: rgb(142, 127, 23); /* oklch */ color: oklch(59.3% 0.116 100.4);
Tailwind
colors: {
custom: {
50: '#b3a35f',
500: '#8e7f17',
950: '#000000',
},
}SCSS
$custom: #8e7f17; $custom-light: #b3a35f; $custom-dark: #000000;
JSON
{
"hex": "#8e7f17",
"rgb": {
"r": 142,
"g": 127,
"b": 23
},
"hsl": {
"h": 52.437,
"s": 72.121,
"l": 32.353
},
"oklch": {
"l": 0.59252,
"c": 0.11634,
"h": 100.4
},
"luminance": 0.20991
}Semantic roles & 50–950 ramp
primary
#8E7F17
secondary
#4051C0
accent
#50EF39
background
#FBFAF5
surface
#F6F3EA
border
#D0CDC6
text
#120F05
muted
#817F79