#8A7F20#8A7F20
#8A7F20 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.9% C 0.112 H 102.5°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7F20 |
|---|---|
| RGB | rgb(138, 127, 32) |
| HSL | hsl(54, 62%, 33%) |
| HSV | hsv(54, 77%, 54%) |
| CMYK | cmyk(0%, 8%, 76.8%, 45.9%) |
| CIE-LAB | lab(52.61, -6.83, 49.69) |
| CIE-LCH | lch(52.61, 50.15, 97.82°) |
| OKLab | oklab(58.91% -0.0241 0.1091) |
| OKLCH | oklch(58.91% 0.112 102.5) |
| XYZ | xyz(18.3322, 20.6871, 4.3936) |
| Luminance | 0.2069 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.85
Baby Poop
#937C00
ΔE00 4.36
Hazel
#8E7618
ΔE00 4.96
Ugly Brown
#7D7103
ΔE00 5.51
Puke Brown
#947706
ΔE00 6.17
Diarrhea
#9F8303
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7F20 #202B8A
analogous
#8A4A20 #8A7F20 #608A20
triadic
#8A7F20 #208A7F #7F208A
tetradic
#8A7F20 #208A4A #202B8A #8A2060
square
#8A7F20 #208A4A #202B8A #8A2060
split-complementary
#8A7F20 #20608A #4A208A
monochromatic
#272409 #585114 #8A7F20 #BCAD2C #D6C84E
Accessibility & contrast
On white
4.09
#8A7F20 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.14
#8A7F20 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7F20
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7F20 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7F20 | 1.00 | 4.09 | 5.14 | 5.14 |
| #FFFFFF | 4.09 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.14 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.14 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7B0D
Deuteranopia (green-blind)
#8F8027
Tritanopia (blue-blind)
#95766D
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8a7f20; /* rgb */ color: rgb(138, 127, 32); /* oklch */ color: oklch(58.9% 0.112 102.5);
Tailwind
colors: {
custom: {
50: '#b0a363',
500: '#8a7f20',
950: '#000000',
},
}SCSS
$custom: #8a7f20; $custom-light: #b0a363; $custom-dark: #000000;
JSON
{
"hex": "#8a7f20",
"rgb": {
"r": 138,
"g": 127,
"b": 32
},
"hsl": {
"h": 53.774,
"s": 62.353,
"l": 33.333
},
"oklch": {
"l": 0.5891,
"c": 0.11175,
"h": 102.5
},
"luminance": 0.20686
}Semantic roles & 50–950 ramp
primary
#8A7F20
secondary
#4D58B9
accent
#53E542
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A