#8D7C1F#8D7C1F
#8D7C1F is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.5% C 0.110 H 98.3°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #8D7C1F |
|---|---|
| RGB | rgb(141, 124, 31) |
| HSL | hsl(51, 64%, 34%) |
| HSV | hsv(51, 78%, 55%) |
| CMYK | cmyk(0%, 12.1%, 78%, 44.7%) |
| CIE-LAB | lab(52.04, -3.81, 49.63) |
| CIE-LCH | lch(52.04, 49.77, 94.39°) |
| OKLab | oklab(58.53% -0.0159 0.1087) |
| OKLCH | oklch(58.53% 0.11 98.3) |
| XYZ | xyz(18.4404, 20.1779, 4.2195) |
| Luminance | 0.2018 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.93
Hazel
#8E7618
ΔE00 2.94
Puke Brown
#947706
ΔE00 4.20
Poo
#8F7303
ΔE00 4.62
Ugly Brown
#7D7103
ΔE00 5.08
Yellowish Brown
#9B7A01
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D7C1F #1F308D
analogous
#8D451F #8D7C1F #678D1F
triadic
#8D7C1F #1F8D7C #7C1F8D
tetradic
#8D7C1F #1F8D45 #1F308D #8D1F67
square
#8D7C1F #1F8D45 #1F308D #8D1F67
split-complementary
#8D7C1F #1F678D #451F8D
monochromatic
#292409 #5B5014 #8D7C1F #BFA82A #D8C34E
Accessibility & contrast
On white
4.17
#8D7C1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.04
#8D7C1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8D7C1F
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D7C1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8D7C1F | 1.00 | 4.17 | 5.04 | 5.04 |
| #FFFFFF | 4.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#89790C
Deuteranopia (green-blind)
#8D7F25
Tritanopia (blue-blind)
#99726A
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #8d7c1f; /* rgb */ color: rgb(141, 124, 31); /* oklch */ color: oklch(58.5% 0.110 98.3);
Tailwind
colors: {
custom: {
50: '#b2a163',
500: '#8d7c1f',
950: '#000000',
},
}SCSS
$custom: #8d7c1f; $custom-light: #b2a163; $custom-dark: #000000;
JSON
{
"hex": "#8d7c1f",
"rgb": {
"r": 141,
"g": 124,
"b": 31
},
"hsl": {
"h": 50.727,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.58526,
"c": 0.10981,
"h": 98.3
},
"luminance": 0.20177
}Semantic roles & 50–950 ramp
primary
#8D7C1F
secondary
#4D5EBB
accent
#5BE741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A