#8A7B2A#8A7B2A
#8A7B2A is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 58.1% C 0.101 H 98.6°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7B2A |
|---|---|
| RGB | rgb(138, 123, 42) |
| HSL | hsl(51, 53%, 35%) |
| HSV | hsv(51, 70%, 54%) |
| CMYK | cmyk(0%, 10.9%, 69.6%, 45.9%) |
| CIE-LAB | lab(51.54, -4.07, 44.58) |
| CIE-LCH | lch(51.54, 44.76, 95.22°) |
| OKLab | oklab(58.09% -0.0152 0.1002) |
| OKLCH | oklch(58.09% 0.101 98.6) |
| XYZ | xyz(17.9829, 19.7372, 5.0525) |
| Luminance | 0.1974 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 3.57
Baby Poop
#937C00
ΔE00 4.60
Ugly Brown
#7D7103
ΔE00 5.07
Puke Brown
#947706
ΔE00 5.32
Poo
#8F7303
ΔE00 5.43
Olive
#808000
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7B2A #2A398A
analogous
#8A4B2A #8A7B2A #698A2A
triadic
#8A7B2A #2A8A7B #7B2A8A
tetradic
#8A7B2A #2A8A4B #2A398A #8A2A69
square
#8A7B2A #2A8A4B #2A398A #8A2A69
split-complementary
#8A7B2A #2A698A #4B2A8A
monochromatic
#2C270D #5B511C #8A7B2A #B9A538 #CFBD60
Accessibility & contrast
On white
4.24
#8A7B2A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.95
#8A7B2A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7B2A
4.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7B2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7B2A | 1.00 | 4.24 | 4.95 | 4.95 |
| #FFFFFF | 4.24 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.95 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.95 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#87781F
Deuteranopia (green-blind)
#8B7D2F
Tritanopia (blue-blind)
#95726A
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #8a7b2a; /* rgb */ color: rgb(138, 123, 42); /* oklch */ color: oklch(58.1% 0.101 98.6);
Tailwind
colors: {
custom: {
50: '#afa068',
500: '#8a7b2a',
950: '#000000',
},
}SCSS
$custom: #8a7b2a; $custom-light: #afa068; $custom-dark: #000000;
JSON
{
"hex": "#8a7b2a",
"rgb": {
"r": 138,
"g": 123,
"b": 42
},
"hsl": {
"h": 50.625,
"s": 53.333,
"l": 35.294
},
"oklch": {
"l": 0.58086,
"c": 0.10137,
"h": 98.6
},
"luminance": 0.19736
}Semantic roles & 50–950 ramp
primary
#8A7B2A
secondary
#5B69B4
accent
#62DD4B
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A