#8A7D31#8A7D31
#8A7D31 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.6% C 0.097 H 99.6°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7D31 |
|---|---|
| RGB | rgb(138, 125, 49) |
| HSL | hsl(51, 48%, 37%) |
| HSV | hsv(51, 64%, 54%) |
| CMYK | cmyk(0%, 9.4%, 64.5%, 45.9%) |
| CIE-LAB | lab(52.17, -4.74, 42.04) |
| CIE-LCH | lch(52.17, 42.31, 96.43°) |
| OKLab | oklab(58.6% -0.0163 0.096) |
| OKLCH | oklch(58.6% 0.097 99.6) |
| XYZ | xyz(18.3700, 20.2931, 5.8545) |
| Luminance | 0.2029 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 4.70
Baby Poop
#937C00
ΔE00 5.54
Drab
#828344
ΔE00 5.57
Ugly Brown
#7D7103
ΔE00 5.99
Olive
#808000
ΔE00 6.06
Puke Brown
#947706
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7D31 #313E8A
analogous
#8A5131 #8A7D31 #6B8A31
triadic
#8A7D31 #318A7D #7D318A
tetradic
#8A7D31 #318A51 #313E8A #8A316B
square
#8A7D31 #318A51 #313E8A #8A316B
split-complementary
#8A7D31 #316B8A #51318A
monochromatic
#302B11 #5D5421 #8A7D31 #B7A641 #CABC6B
Accessibility & contrast
On white
4.15
#8A7D31 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.06
#8A7D31 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7D31
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7D31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7D31 | 1.00 | 4.15 | 5.06 | 5.06 |
| #FFFFFF | 4.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#897A28
Deuteranopia (green-blind)
#8C7F35
Tritanopia (blue-blind)
#94746D
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #8a7d31; /* rgb */ color: rgb(138, 125, 49); /* oklch */ color: oklch(58.6% 0.097 99.6);
Tailwind
colors: {
custom: {
50: '#afa26d',
500: '#8a7d31',
950: '#000000',
},
}SCSS
$custom: #8a7d31; $custom-light: #afa26d; $custom-dark: #000000;
JSON
{
"hex": "#8a7d31",
"rgb": {
"r": 138,
"g": 125,
"b": 49
},
"hsl": {
"h": 51.236,
"s": 47.594,
"l": 36.667
},
"oklch": {
"l": 0.58603,
"c": 0.09739,
"h": 99.6
},
"luminance": 0.20292
}Semantic roles & 50–950 ramp
primary
#8A7D31
secondary
#6570B2
accent
#64D751
background
#FBF9F6
surface
#F6F2EC
border
#D0CCC7
text
#110F07
muted
#807E7A