#8A802B#8A802B
#8A802B is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.2% C 0.105 H 102.6°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #8A802B |
|---|---|
| RGB | rgb(138, 128, 43) |
| HSL | hsl(54, 52%, 35%) |
| HSV | hsv(54, 69%, 54%) |
| CMYK | cmyk(0%, 7.2%, 68.8%, 45.9%) |
| CIE-LAB | lab(52.97, -6.79, 45.61) |
| CIE-LCH | lch(52.97, 46.11, 98.47°) |
| OKLab | oklab(59.22% -0.0228 0.1026) |
| OKLCH | oklch(59.22% 0.105 102.6) |
| XYZ | xyz(18.6372, 21.0168, 5.3600) |
| Luminance | 0.2102 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 4.52
Baby Poop
#937C00
ΔE00 5.36
Drab
#828344
ΔE00 5.50
Hazel
#8E7618
ΔE00 5.52
Ugly Brown
#7D7103
ΔE00 6.23
Shit Green
#758000
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A802B #2B358A
analogous
#8A502B #8A802B #648A2B
triadic
#8A802B #2B8A80 #802B8A
tetradic
#8A802B #2B8A50 #2B358A #8A2B64
square
#8A802B #2B8A50 #2B358A #8A2B64
split-complementary
#8A802B #2B648A #502B8A
monochromatic
#2D290E #5B551C #8A802B #B9AB3A #CEC361
Accessibility & contrast
On white
4.04
#8A802B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.20
#8A802B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A802B
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A802B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A802B | 1.00 | 4.04 | 5.20 | 5.20 |
| #FFFFFF | 4.04 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.20 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.20 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8C7C1F
Deuteranopia (green-blind)
#8F8030
Tritanopia (blue-blind)
#94776F
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8a802b; /* rgb */ color: rgb(138, 128, 43); /* oklch */ color: oklch(59.2% 0.105 102.6);
Tailwind
colors: {
custom: {
50: '#afa469',
500: '#8a802b',
950: '#000000',
},
}SCSS
$custom: #8a802b; $custom-light: #afa469; $custom-dark: #000000;
JSON
{
"hex": "#8a802b",
"rgb": {
"r": 138,
"g": 128,
"b": 43
},
"hsl": {
"h": 53.684,
"s": 52.486,
"l": 35.49
},
"oklch": {
"l": 0.59222,
"c": 0.10509,
"h": 102.6
},
"luminance": 0.21016
}Semantic roles & 50–950 ramp
primary
#8A802B
secondary
#5D66B4
accent
#5BDC4C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A