#8A7E2C#8A7E2C
#8A7E2C is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.8% C 0.102 H 100.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7E2C |
|---|---|
| RGB | rgb(138, 126, 44) |
| HSL | hsl(52, 52%, 36%) |
| HSV | hsv(52, 68%, 54%) |
| CMYK | cmyk(0%, 8.7%, 68.1%, 45.9%) |
| CIE-LAB | lab(52.41, -5.62, 44.59) |
| CIE-LCH | lch(52.41, 44.94, 97.19°) |
| OKLab | oklab(58.78% -0.0194 0.1006) |
| OKLCH | oklch(58.78% 0.102 100.9) |
| XYZ | xyz(18.3975, 20.5076, 5.3717) |
| Luminance | 0.2051 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 4.76
Baby Poop
#937C00
ΔE00 5.08
Olive
#808000
ΔE00 5.16
Drab
#828344
ΔE00 5.76
Ugly Brown
#7D7103
ΔE00 5.77
Puke Brown
#947706
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7E2C #2C388A
analogous
#8A4F2C #8A7E2C #678A2C
triadic
#8A7E2C #2C8A7E #7E2C8A
tetradic
#8A7E2C #2C8A4F #2C388A #8A2C67
square
#8A7E2C #2C8A4F #2C388A #8A2C67
split-complementary
#8A7E2C #2C678A #4F2C8A
monochromatic
#2D290E #5C541D #8A7E2C #B8A83B #CDC063
Accessibility & contrast
On white
4.12
#8A7E2C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.10
#8A7E2C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7E2C
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7E2C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7E2C | 1.00 | 4.12 | 5.10 | 5.10 |
| #FFFFFF | 4.12 | 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)
#8A7A21
Deuteranopia (green-blind)
#8D7F31
Tritanopia (blue-blind)
#95756D
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #8a7e2c; /* rgb */ color: rgb(138, 126, 44); /* oklch */ color: oklch(58.8% 0.102 100.9);
Tailwind
colors: {
custom: {
50: '#afa36a',
500: '#8a7e2c',
950: '#000000',
},
}SCSS
$custom: #8a7e2c; $custom-light: #afa36a; $custom-dark: #000000;
JSON
{
"hex": "#8a7e2c",
"rgb": {
"r": 138,
"g": 126,
"b": 44
},
"hsl": {
"h": 52.34,
"s": 51.648,
"l": 35.686
},
"oklch": {
"l": 0.58779,
"c": 0.10245,
"h": 100.9
},
"luminance": 0.20507
}Semantic roles & 50–950 ramp
primary
#8A7E2C
secondary
#5E69B4
accent
#5FDB4D
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F07
muted
#807E7A