#8E7D2B#8E7D2B
#8E7D2B is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.9% C 0.103 H 97.4°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #8E7D2B |
|---|---|
| RGB | rgb(142, 125, 43) |
| HSL | hsl(50, 54%, 36%) |
| HSV | hsv(50, 70%, 56%) |
| CMYK | cmyk(0%, 12%, 69.7%, 44.3%) |
| CIE-LAB | lab(52.50, -3.29, 45.25) |
| CIE-LCH | lch(52.50, 45.37, 94.16°) |
| OKLab | oklab(58.94% -0.0131 0.1017) |
| OKLCH | oklch(58.94% 0.103 97.4) |
| XYZ | xyz(18.9259, 20.5934, 5.2631) |
| Luminance | 0.2059 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 3.47
Baby Poop
#937C00
ΔE00 4.06
Puke Brown
#947706
ΔE00 4.88
Poo
#8F7303
ΔE00 5.33
Yellowish Brown
#9B7A01
ΔE00 5.88
Diarrhea
#9F8303
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E7D2B #2B3C8E
analogous
#8E4C2B #8E7D2B #6E8E2B
triadic
#8E7D2B #2B8E7D #7D2B8E
tetradic
#8E7D2B #2B8E4C #2B3C8E #8E2B6E
square
#8E7D2B #2B8E4C #2B3C8E #8E2B6E
split-complementary
#8E7D2B #2B6E8E #4C2B8E
monochromatic
#302A0F #5F541D #8E7D2B #BDA639 #D0BD63
Accessibility & contrast
On white
4.10
#8E7D2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.12
#8E7D2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E7D2B
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E7D2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E7D2B | 1.00 | 4.10 | 5.12 | 5.12 |
| #FFFFFF | 4.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.12 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.12 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#897A20
Deuteranopia (green-blind)
#8E8030
Tritanopia (blue-blind)
#99746C
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #8e7d2b; /* rgb */ color: rgb(142, 125, 43); /* oklch */ color: oklch(58.9% 0.103 97.4);
Tailwind
colors: {
custom: {
50: '#b2a269',
500: '#8e7d2b',
950: '#000000',
},
}SCSS
$custom: #8e7d2b; $custom-light: #b2a269; $custom-dark: #000000;
JSON
{
"hex": "#8e7d2b",
"rgb": {
"r": 142,
"g": 125,
"b": 43
},
"hsl": {
"h": 49.697,
"s": 53.514,
"l": 36.275
},
"oklch": {
"l": 0.58943,
"c": 0.10253,
"h": 97.4
},
"luminance": 0.20592
}Semantic roles & 50–950 ramp
primary
#8E7D2B
secondary
#5F6EB6
accent
#64DD4B
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A