#8D7F17#8D7F17
#8D7F17 is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.2% C 0.116 H 101.0°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #8D7F17 |
|---|---|
| RGB | rgb(141, 127, 23) |
| HSL | hsl(53, 72%, 32%) |
| HSV | hsv(53, 84%, 55%) |
| CMYK | cmyk(0%, 9.9%, 83.7%, 44.7%) |
| CIE-LAB | lab(52.84, -5.78, 53.00) |
| CIE-LCH | lch(52.84, 53.32, 96.23°) |
| OKLab | oklab(59.15% -0.0222 0.1142) |
| OKLCH | oklch(59.15% 0.116 101) |
| XYZ | xyz(18.7295, 20.9042, 3.8588) |
| Luminance | 0.2090 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 3.12
Olive
#808000
ΔE00 4.37
Hazel
#8E7618
ΔE00 4.40
Diarrhea
#9F8303
ΔE00 5.19
Puke Brown
#947706
ΔE00 5.22
Ugly Brown
#7D7103
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D7F17 #17258D
analogous
#8D4417 #8D7F17 #608D17
triadic
#8D7F17 #178D7F #7F178D
tetradic
#8D7F17 #178D44 #17258D #8D1760
square
#8D7F17 #178D44 #17258D #8D1760
split-complementary
#8D7F17 #17608D #44178D
monochromatic
#242006 #58500E #8D7F17 #C2AE20 #E0CD3F
Accessibility & contrast
On white
4.05
#8D7F17 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.18
#8D7F17 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8D7F17
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D7F17 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8D7F17 | 1.00 | 4.05 | 5.18 | 5.18 |
| #FFFFFF | 4.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#908120
Tritanopia (blue-blind)
#99756C
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8d7f17; /* rgb */ color: rgb(141, 127, 23); /* oklch */ color: oklch(59.2% 0.116 101.0);
Tailwind
colors: {
custom: {
50: '#b2a35f',
500: '#8d7f17',
950: '#000000',
},
}SCSS
$custom: #8d7f17; $custom-light: #b2a35f; $custom-dark: #000000;
JSON
{
"hex": "#8d7f17",
"rgb": {
"r": 141,
"g": 127,
"b": 23
},
"hsl": {
"h": 52.881,
"s": 71.951,
"l": 32.157
},
"oklch": {
"l": 0.59153,
"c": 0.11637,
"h": 101
},
"luminance": 0.20903
}Semantic roles & 50–950 ramp
primary
#8D7F17
secondary
#404FC0
accent
#4FEF39
background
#FBFAF5
surface
#F6F3EA
border
#D0CDC6
text
#110F05
muted
#807F79