#8A7F2F#8A7F2F
#8A7F2F is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.0% C 0.101 H 101.5°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7F2F |
|---|---|
| RGB | rgb(138, 127, 47) |
| HSL | hsl(53, 49%, 36%) |
| HSV | hsv(53, 66%, 54%) |
| CMYK | cmyk(0%, 8%, 65.9%, 45.9%) |
| CIE-LAB | lab(52.72, -5.99, 43.56) |
| CIE-LCH | lch(52.72, 43.97, 97.82°) |
| OKLab | oklab(59.03% -0.0201 0.0989) |
| OKLCH | oklch(59.03% 0.101 101.5) |
| XYZ | xyz(18.5844, 20.7880, 5.7223) |
| Luminance | 0.2079 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 5.22
Drab
#828344
ΔE00 5.26
Hazel
#8E7618
ΔE00 5.28
Baby Poop
#937C00
ΔE00 5.55
Ugly Brown
#7D7103
ΔE00 6.22
Puke Brown
#947706
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7F2F #2F3A8A
analogous
#8A522F #8A7F2F #688A2F
triadic
#8A7F2F #2F8A7F #7F2F8A
tetradic
#8A7F2F #2F8A52 #2F3A8A #8A2F68
square
#8A7F2F #2F8A52 #2F3A8A #8A2F68
split-complementary
#8A7F2F #2F688A #522F8A
monochromatic
#2F2B10 #5C551F #8A7F2F #B8A93F #CCBF68
Accessibility & contrast
On white
4.07
#8A7F2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.16
#8A7F2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7F2F
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7F2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7F2F | 1.00 | 4.07 | 5.16 | 5.16 |
| #FFFFFF | 4.07 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.16 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.16 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7B25
Deuteranopia (green-blind)
#8E8033
Tritanopia (blue-blind)
#94766E
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8a7f2f; /* rgb */ color: rgb(138, 127, 47); /* oklch */ color: oklch(59.0% 0.101 101.5);
Tailwind
colors: {
custom: {
50: '#afa36c',
500: '#8a7f2f',
950: '#000000',
},
}SCSS
$custom: #8a7f2f; $custom-light: #afa36c; $custom-dark: #000000;
JSON
{
"hex": "#8a7f2f",
"rgb": {
"r": 138,
"g": 127,
"b": 47
},
"hsl": {
"h": 52.747,
"s": 49.189,
"l": 36.275
},
"oklch": {
"l": 0.59034,
"c": 0.10094,
"h": 101.5
},
"luminance": 0.20787
}Semantic roles & 50–950 ramp
primary
#8A7F2F
secondary
#626CB3
accent
#60D94F
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F07
muted
#807F7A