#8A7F33#8A7F33
#8A7F33 is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.1% C 0.097 H 101.1°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7F33 |
|---|---|
| RGB | rgb(138, 127, 51) |
| HSL | hsl(52, 46%, 37%) |
| HSV | hsv(52, 63%, 54%) |
| CMYK | cmyk(0%, 8%, 63%, 45.9%) |
| CIE-LAB | lab(52.75, -5.71, 41.73) |
| CIE-LCH | lch(52.75, 42.12, 97.79°) |
| OKLab | oklab(59.08% -0.0188 0.0957) |
| OKLCH | oklch(59.08% 0.097 101.1) |
| XYZ | xyz(18.6689, 20.8218, 6.1670) |
| Luminance | 0.2082 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Drab
#828344
ΔE00 4.87
Hazel
#8E7618
ΔE00 5.51
Olive
#808000
ΔE00 5.74
Baby Poop
#937C00
ΔE00 5.99
Ugly Brown
#7D7103
ΔE00 6.55
Dark Khaki
#9B8F55
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7F33 #333E8A
analogous
#8A5433 #8A7F33 #6A8A33
triadic
#8A7F33 #338A7F #7F338A
tetradic
#8A7F33 #338A54 #333E8A #8A336A
square
#8A7F33 #338A54 #333E8A #8A336A
split-complementary
#8A7F33 #336A8A #54338A
monochromatic
#312D12 #5D5622 #8A7F33 #B7A844 #C9BE6E
Accessibility & contrast
On white
4.07
#8A7F33 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.16
#8A7F33 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7F33
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7F33 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7F33 | 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)
#8A7B2A
Deuteranopia (green-blind)
#8E8037
Tritanopia (blue-blind)
#94766F
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8a7f33; /* rgb */ color: rgb(138, 127, 51); /* oklch */ color: oklch(59.1% 0.097 101.1);
Tailwind
colors: {
custom: {
50: '#afa36e',
500: '#8a7f33',
950: '#000000',
},
}SCSS
$custom: #8a7f33; $custom-light: #afa36e; $custom-dark: #000000;
JSON
{
"hex": "#8a7f33",
"rgb": {
"r": 138,
"g": 127,
"b": 51
},
"hsl": {
"h": 52.414,
"s": 46.032,
"l": 37.059
},
"oklch": {
"l": 0.59075,
"c": 0.09749,
"h": 101.1
},
"luminance": 0.20821
}Semantic roles & 50–950 ramp
primary
#8A7F33
secondary
#6771B1
accent
#63D652
background
#FBFAF6
surface
#F6F3EC
border
#D0CDC7
text
#110F07
muted
#807F7A