#8A7D2F#8A7D2F
#8A7D2F is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.6% C 0.099 H 99.8°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7D2F |
|---|---|
| RGB | rgb(138, 125, 47) |
| HSL | hsl(51, 49%, 36%) |
| HSV | hsv(51, 66%, 54%) |
| CMYK | cmyk(0%, 9.4%, 65.9%, 45.9%) |
| CIE-LAB | lab(52.15, -4.87, 42.96) |
| CIE-LCH | lch(52.15, 43.23, 96.47°) |
| OKLab | oklab(58.58% -0.0169 0.0976) |
| OKLCH | oklch(58.58% 0.099 99.8) |
| XYZ | xyz(18.3287, 20.2765, 5.6371) |
| Luminance | 0.2028 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 4.56
Baby Poop
#937C00
ΔE00 5.29
Drab
#828344
ΔE00 5.73
Ugly Brown
#7D7103
ΔE00 5.80
Olive
#808000
ΔE00 5.81
Puke Brown
#947706
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7D2F #2F3C8A
analogous
#8A502F #8A7D2F #6A8A2F
triadic
#8A7D2F #2F8A7D #7D2F8A
tetradic
#8A7D2F #2F8A50 #2F3C8A #8A2F6A
square
#8A7D2F #2F8A50 #2F3C8A #8A2F6A
split-complementary
#8A7D2F #2F6A8A #502F8A
monochromatic
#2F2A10 #5C541F #8A7D2F #B8A63F #CCBD68
Accessibility & contrast
On white
4.15
#8A7D2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.06
#8A7D2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7D2F
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7D2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7D2F | 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)
#897A26
Deuteranopia (green-blind)
#8C7F33
Tritanopia (blue-blind)
#94746D
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #8a7d2f; /* rgb */ color: rgb(138, 125, 47); /* oklch */ color: oklch(58.6% 0.099 99.8);
Tailwind
colors: {
custom: {
50: '#afa26b',
500: '#8a7d2f',
950: '#000000',
},
}SCSS
$custom: #8a7d2f; $custom-light: #afa26b; $custom-dark: #000000;
JSON
{
"hex": "#8a7d2f",
"rgb": {
"r": 138,
"g": 125,
"b": 47
},
"hsl": {
"h": 51.429,
"s": 49.189,
"l": 36.275
},
"oklch": {
"l": 0.58583,
"c": 0.09909,
"h": 99.8
},
"luminance": 0.20276
}Semantic roles & 50–950 ramp
primary
#8A7D2F
secondary
#626EB3
accent
#63D94F
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F07
muted
#807E7A