#8D7E1F#8D7E1F
#8D7E1F is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 59.0% C 0.111 H 99.9°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #8D7E1F |
|---|---|
| RGB | rgb(141, 126, 31) |
| HSL | hsl(52, 64%, 34%) |
| HSV | hsv(52, 78%, 55%) |
| CMYK | cmyk(0%, 10.6%, 78%, 44.7%) |
| CIE-LAB | lab(52.60, -4.93, 50.15) |
| CIE-LCH | lch(52.60, 50.39, 95.61°) |
| OKLab | oklab(58.97% -0.0191 0.1098) |
| OKLCH | oklch(58.97% 0.111 99.9) |
| XYZ | xyz(18.6936, 20.6843, 4.3039) |
| Luminance | 0.2068 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 3.24
Hazel
#8E7618
ΔE00 3.84
Puke Brown
#947706
ΔE00 4.93
Olive
#808000
ΔE00 4.94
Diarrhea
#9F8303
ΔE00 5.39
Poo
#8F7303
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D7E1F #1F2E8D
analogous
#8D471F #8D7E1F #658D1F
triadic
#8D7E1F #1F8D7E #7E1F8D
tetradic
#8D7E1F #1F8D47 #1F2E8D #8D1F65
square
#8D7E1F #1F8D47 #1F2E8D #8D1F65
split-complementary
#8D7E1F #1F658D #471F8D
monochromatic
#292409 #5B5114 #8D7E1F #BFAB2A #D8C54E
Accessibility & contrast
On white
4.09
#8D7E1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.14
#8D7E1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8D7E1F
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D7E1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8D7E1F | 1.00 | 4.09 | 5.14 | 5.14 |
| #FFFFFF | 4.09 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.14 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.14 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7A0B
Deuteranopia (green-blind)
#8F8026
Tritanopia (blue-blind)
#98746C
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #8d7e1f; /* rgb */ color: rgb(141, 126, 31); /* oklch */ color: oklch(59.0% 0.111 99.9);
Tailwind
colors: {
custom: {
50: '#b2a363',
500: '#8d7e1f',
950: '#000000',
},
}SCSS
$custom: #8d7e1f; $custom-light: #b2a363; $custom-dark: #000000;
JSON
{
"hex": "#8d7e1f",
"rgb": {
"r": 141,
"g": 126,
"b": 31
},
"hsl": {
"h": 51.818,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.58973,
"c": 0.11141,
"h": 99.9
},
"luminance": 0.20683
}Semantic roles & 50–950 ramp
primary
#8D7E1F
secondary
#4D5CBB
accent
#57E741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A