#8A7F34#8A7F34
#8A7F34 is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.1% C 0.097 H 101.0°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7F34 |
|---|---|
| RGB | rgb(138, 127, 52) |
| HSL | hsl(52, 45%, 37%) |
| HSV | hsv(52, 62%, 54%) |
| CMYK | cmyk(0%, 8%, 62.3%, 45.9%) |
| CIE-LAB | lab(52.76, -5.63, 41.27) |
| CIE-LCH | lch(52.76, 41.65, 97.78°) |
| OKLab | oklab(59.09% -0.0184 0.0948) |
| OKLCH | oklch(59.09% 0.097 101) |
| XYZ | xyz(18.6911, 20.8307, 6.2843) |
| Luminance | 0.2083 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Drab
#828344
ΔE00 4.78
Hazel
#8E7618
ΔE00 5.58
Olive
#808000
ΔE00 5.88
Baby Poop
#937C00
ΔE00 6.12
Ugly Brown
#7D7103
ΔE00 6.65
Dark Khaki
#9B8F55
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7F34 #343F8A
analogous
#8A5434 #8A7F34 #6A8A34
triadic
#8A7F34 #348A7F #7F348A
tetradic
#8A7F34 #348A54 #343F8A #8A346A
square
#8A7F34 #348A54 #343F8A #8A346A
split-complementary
#8A7F34 #346A8A #54348A
monochromatic
#312D13 #5E5623 #8A7F34 #B6A845 #C9BD6F
Accessibility & contrast
On white
4.07
#8A7F34 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.17
#8A7F34 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7F34
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7F34 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7F34 | 1.00 | 4.07 | 5.17 | 5.17 |
| #FFFFFF | 4.07 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7B2C
Deuteranopia (green-blind)
#8D8038
Tritanopia (blue-blind)
#94766F
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8a7f34; /* rgb */ color: rgb(138, 127, 52); /* oklch */ color: oklch(59.1% 0.097 101.0);
Tailwind
colors: {
custom: {
50: '#afa36f',
500: '#8a7f34',
950: '#000000',
},
}SCSS
$custom: #8a7f34; $custom-light: #afa36f; $custom-dark: #000000;
JSON
{
"hex": "#8a7f34",
"rgb": {
"r": 138,
"g": 127,
"b": 52
},
"hsl": {
"h": 52.326,
"s": 45.263,
"l": 37.255
},
"oklch": {
"l": 0.59086,
"c": 0.09659,
"h": 101
},
"luminance": 0.2083
}Semantic roles & 50–950 ramp
primary
#8A7F34
secondary
#6972B1
accent
#63D553
background
#FBFAF6
surface
#F6F3EC
border
#D0CDC7
text
#110F07
muted
#807F7A