#8A7E2E#8A7E2E
#8A7E2E is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.8% C 0.101 H 100.7°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7E2E |
|---|---|
| RGB | rgb(138, 126, 46) |
| HSL | hsl(52, 50%, 36%) |
| HSV | hsv(52, 67%, 54%) |
| CMYK | cmyk(0%, 8.7%, 66.7%, 45.9%) |
| CIE-LAB | lab(52.42, -5.50, 43.71) |
| CIE-LCH | lch(52.42, 44.05, 97.17°) |
| OKLab | oklab(58.8% -0.0188 0.0991) |
| OKLCH | oklch(58.8% 0.101 100.7) |
| XYZ | xyz(18.4360, 20.5230, 5.5745) |
| Luminance | 0.2052 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 4.86
Baby Poop
#937C00
ΔE00 5.29
Olive
#808000
ΔE00 5.38
Drab
#828344
ΔE00 5.57
Ugly Brown
#7D7103
ΔE00 5.91
Puke Brown
#947706
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7E2E #2E3A8A
analogous
#8A502E #8A7E2E #688A2E
triadic
#8A7E2E #2E8A7E #7E2E8A
tetradic
#8A7E2E #2E8A50 #2E3A8A #8A2E68
square
#8A7E2E #2E8A50 #2E3A8A #8A2E68
split-complementary
#8A7E2E #2E688A #502E8A
monochromatic
#2E2A0F #5C541F #8A7E2E #B8A83D #CCBF66
Accessibility & contrast
On white
4.11
#8A7E2E on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.10
#8A7E2E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7E2E
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7E2E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7E2E | 1.00 | 4.11 | 5.10 | 5.10 |
| #FFFFFF | 4.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7A24
Deuteranopia (green-blind)
#8D7F32
Tritanopia (blue-blind)
#94756D
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #8a7e2e; /* rgb */ color: rgb(138, 126, 46); /* oklch */ color: oklch(58.8% 0.101 100.7);
Tailwind
colors: {
custom: {
50: '#afa36b',
500: '#8a7e2e',
950: '#000000',
},
}SCSS
$custom: #8a7e2e; $custom-light: #afa36b; $custom-dark: #000000;
JSON
{
"hex": "#8a7e2e",
"rgb": {
"r": 138,
"g": 126,
"b": 46
},
"hsl": {
"h": 52.174,
"s": 50,
"l": 36.078
},
"oklch": {
"l": 0.58798,
"c": 0.10084,
"h": 100.7
},
"luminance": 0.20522
}Semantic roles & 50–950 ramp
primary
#8A7E2E
secondary
#616CB3
accent
#60DA4E
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F07
muted
#807E7A