#8A7F24#8A7F24
#8A7F24 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.9% C 0.109 H 102.3°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7F24 |
|---|---|
| RGB | rgb(138, 127, 36) |
| HSL | hsl(54, 59%, 34%) |
| HSV | hsv(54, 74%, 54%) |
| CMYK | cmyk(0%, 8%, 73.9%, 45.9%) |
| CIE-LAB | lab(52.63, -6.63, 48.18) |
| CIE-LCH | lch(52.63, 48.64, 97.84°) |
| OKLab | oklab(58.94% -0.0232 0.1067) |
| OKLCH | oklch(58.94% 0.109 102.3) |
| XYZ | xyz(18.3899, 20.7102, 4.6975) |
| Luminance | 0.2071 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 4.13
Baby Poop
#937C00
ΔE00 4.60
Hazel
#8E7618
ΔE00 4.97
Ugly Brown
#7D7103
ΔE00 5.62
Puke Brown
#947706
ΔE00 6.28
Drab
#828344
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7F24 #242F8A
analogous
#8A4C24 #8A7F24 #628A24
triadic
#8A7F24 #248A7F #7F248A
tetradic
#8A7F24 #248A4C #242F8A #8A2462
square
#8A7F24 #248A4C #242F8A #8A2462
split-complementary
#8A7F24 #24628A #4C248A
monochromatic
#29260B #595217 #8A7F24 #BBAC31 #D3C556
Accessibility & contrast
On white
4.08
#8A7F24 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.14
#8A7F24 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7F24
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7F24 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7F24 | 1.00 | 4.08 | 5.14 | 5.14 |
| #FFFFFF | 4.08 | 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)
#8B7B15
Deuteranopia (green-blind)
#8E802A
Tritanopia (blue-blind)
#95766D
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8a7f24; /* rgb */ color: rgb(138, 127, 36); /* oklch */ color: oklch(58.9% 0.109 102.3);
Tailwind
colors: {
custom: {
50: '#afa365',
500: '#8a7f24',
950: '#000000',
},
}SCSS
$custom: #8a7f24; $custom-light: #afa365; $custom-dark: #000000;
JSON
{
"hex": "#8a7f24",
"rgb": {
"r": 138,
"g": 127,
"b": 36
},
"hsl": {
"h": 53.529,
"s": 58.621,
"l": 34.118
},
"oklch": {
"l": 0.58938,
"c": 0.10921,
"h": 102.3
},
"luminance": 0.20709
}Semantic roles & 50–950 ramp
primary
#8A7F24
secondary
#535EB7
accent
#57E246
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A