#8E7D17#8E7D17
#8E7D17 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.8% C 0.115 H 98.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #8E7D17 |
|---|---|
| RGB | rgb(142, 125, 23) |
| HSL | hsl(51, 72%, 32%) |
| HSV | hsv(51, 84%, 56%) |
| CMYK | cmyk(0%, 12%, 83.8%, 44.3%) |
| CIE-LAB | lab(52.38, -4.21, 52.64) |
| CIE-LCH | lch(52.38, 52.81, 94.57°) |
| OKLab | oklab(58.8% -0.0178 0.1134) |
| OKLCH | oklch(58.8% 0.115 98.9) |
| XYZ | xyz(18.6446, 20.4808, 3.7816) |
| Luminance | 0.2048 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.31
Hazel
#8E7618
ΔE00 3.31
Puke Brown
#947706
ΔE00 4.14
Poo
#8F7303
ΔE00 4.72
Diarrhea
#9F8303
ΔE00 4.80
Yellowish Brown
#9B7A01
ΔE00 5.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E7D17 #17288E
analogous
#8E4217 #8E7D17 #638E17
triadic
#8E7D17 #178E7D #7D178E
tetradic
#8E7D17 #178E42 #17288E #8E1763
square
#8E7D17 #178E42 #17288E #8E1763
split-complementary
#8E7D17 #17638E #42178E
monochromatic
#252006 #594F0E #8E7D17 #C3AB20 #E0C93F
Accessibility & contrast
On white
4.12
#8E7D17 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.10
#8E7D17 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E7D17
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E7D17 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E7D17 | 1.00 | 4.12 | 5.10 | 5.10 |
| #FFFFFF | 4.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7A00
Deuteranopia (green-blind)
#8F801F
Tritanopia (blue-blind)
#9A736B
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #8e7d17; /* rgb */ color: rgb(142, 125, 23); /* oklch */ color: oklch(58.8% 0.115 98.9);
Tailwind
colors: {
custom: {
50: '#b3a25f',
500: '#8e7d17',
950: '#000000',
},
}SCSS
$custom: #8e7d17; $custom-light: #b3a25f; $custom-dark: #000000;
JSON
{
"hex": "#8e7d17",
"rgb": {
"r": 142,
"g": 125,
"b": 23
},
"hsl": {
"h": 51.429,
"s": 72.121,
"l": 32.353
},
"oklch": {
"l": 0.58805,
"c": 0.11478,
"h": 98.9
},
"luminance": 0.2048
}Semantic roles & 50–950 ramp
primary
#8E7D17
secondary
#4053C0
accent
#53EF39
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120F05
muted
#817E79