#8A7E2B#8A7E2B
#8A7E2B is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.8% C 0.103 H 101.0°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7E2B |
|---|---|
| RGB | rgb(138, 126, 43) |
| HSL | hsl(52, 52%, 35%) |
| HSV | hsv(52, 69%, 54%) |
| CMYK | cmyk(0%, 8.7%, 68.8%, 45.9%) |
| CIE-LAB | lab(52.40, -5.69, 45.02) |
| CIE-LCH | lch(52.40, 45.38, 97.20°) |
| OKLab | oklab(58.77% -0.0197 0.1013) |
| OKLCH | oklch(58.77% 0.103 101) |
| XYZ | xyz(18.3789, 20.5002, 5.2739) |
| Luminance | 0.2050 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 4.72
Baby Poop
#937C00
ΔE00 4.98
Olive
#808000
ΔE00 5.05
Ugly Brown
#7D7103
ΔE00 5.70
Drab
#828344
ΔE00 5.86
Puke Brown
#947706
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7E2B #2B378A
analogous
#8A4E2B #8A7E2B #668A2B
triadic
#8A7E2B #2B8A7E #7E2B8A
tetradic
#8A7E2B #2B8A4E #2B378A #8A2B66
square
#8A7E2B #2B8A4E #2B378A #8A2B66
split-complementary
#8A7E2B #2B668A #4E2B8A
monochromatic
#2D290E #5B531C #8A7E2B #B9A93A #CEC061
Accessibility & contrast
On white
4.12
#8A7E2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.10
#8A7E2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7E2B
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7E2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7E2B | 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)
#8A7A20
Deuteranopia (green-blind)
#8D7F30
Tritanopia (blue-blind)
#95756D
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #8a7e2b; /* rgb */ color: rgb(138, 126, 43); /* oklch */ color: oklch(58.8% 0.103 101.0);
Tailwind
colors: {
custom: {
50: '#afa369',
500: '#8a7e2b',
950: '#000000',
},
}SCSS
$custom: #8a7e2b; $custom-light: #afa369; $custom-dark: #000000;
JSON
{
"hex": "#8a7e2b",
"rgb": {
"r": 138,
"g": 126,
"b": 43
},
"hsl": {
"h": 52.421,
"s": 52.486,
"l": 35.49
},
"oklch": {
"l": 0.5877,
"c": 0.10324,
"h": 101
},
"luminance": 0.20499
}Semantic roles & 50–950 ramp
primary
#8A7E2B
secondary
#5D68B4
accent
#5EDC4C
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A