#8A7F2E#8A7F2E
#8A7F2E is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.0% C 0.102 H 101.6°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7F2E |
|---|---|
| RGB | rgb(138, 127, 46) |
| HSL | hsl(53, 50%, 36%) |
| HSV | hsv(53, 67%, 54%) |
| CMYK | cmyk(0%, 8%, 66.7%, 45.9%) |
| CIE-LAB | lab(52.71, -6.05, 44.01) |
| CIE-LCH | lch(52.71, 44.42, 97.83°) |
| OKLab | oklab(59.02% -0.0204 0.0997) |
| OKLCH | oklch(59.02% 0.102 101.6) |
| XYZ | xyz(18.5645, 20.7800, 5.6173) |
| Luminance | 0.2078 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 5.10
Hazel
#8E7618
ΔE00 5.23
Drab
#828344
ΔE00 5.36
Baby Poop
#937C00
ΔE00 5.44
Ugly Brown
#7D7103
ΔE00 6.15
Puke Brown
#947706
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7F2E #2E398A
analogous
#8A512E #8A7F2E #678A2E
triadic
#8A7F2E #2E8A7F #7F2E8A
tetradic
#8A7F2E #2E8A51 #2E398A #8A2E67
square
#8A7F2E #2E8A51 #2E398A #8A2E67
split-complementary
#8A7F2E #2E678A #512E8A
monochromatic
#2E2B0F #5C551F #8A7F2E #B8A93D #CCC066
Accessibility & contrast
On white
4.07
#8A7F2E on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.16
#8A7F2E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7F2E
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7F2E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7F2E | 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)
#8B7B24
Deuteranopia (green-blind)
#8E8033
Tritanopia (blue-blind)
#94766E
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8a7f2e; /* rgb */ color: rgb(138, 127, 46); /* oklch */ color: oklch(59.0% 0.102 101.6);
Tailwind
colors: {
custom: {
50: '#afa36b',
500: '#8a7f2e',
950: '#000000',
},
}SCSS
$custom: #8a7f2e; $custom-light: #afa36b; $custom-dark: #000000;
JSON
{
"hex": "#8a7f2e",
"rgb": {
"r": 138,
"g": 127,
"b": 46
},
"hsl": {
"h": 52.826,
"s": 50,
"l": 36.078
},
"oklch": {
"l": 0.59024,
"c": 0.10177,
"h": 101.6
},
"luminance": 0.20779
}Semantic roles & 50–950 ramp
primary
#8A7F2E
secondary
#616BB3
accent
#5FDA4E
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F07
muted
#807F7A