#8A812A#8A812A
#8A812A is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.4% C 0.107 H 103.4°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).
Color values
| HEX | #8A812A |
|---|---|
| RGB | rgb(138, 129, 42) |
| HSL | hsl(54, 53%, 35%) |
| HSV | hsv(54, 70%, 54%) |
| CMYK | cmyk(0%, 6.5%, 69.6%, 45.9%) |
| CIE-LAB | lab(53.25, -7.41, 46.33) |
| CIE-LCH | lch(53.25, 46.91, 99.08°) |
| OKLab | oklab(59.44% -0.0247 0.1039) |
| OKLCH | oklch(59.44% 0.107 103.4) |
| XYZ | xyz(18.7502, 21.2717, 5.3082) |
| Luminance | 0.2127 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 4.21
Drab
#828344
ΔE00 5.48
Baby Poop
#937C00
ΔE00 5.52
Hazel
#8E7618
ΔE00 5.90
Ugly Brown
#7D7103
ΔE00 6.48
Shit Green
#758000
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A812A #2A338A
analogous
#8A512A #8A812A #638A2A
triadic
#8A812A #2A8A81 #812A8A
tetradic
#8A812A #2A8A51 #2A338A #8A2A63
square
#8A812A #2A8A51 #2A338A #8A2A63
split-complementary
#8A812A #2A638A #512A8A
monochromatic
#2C290D #5B551C #8A812A #B9AD38 #CFC460
Accessibility & contrast
On white
4.00
#8A812A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.25
#8A812A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A812A
5.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A812A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A812A | 1.00 | 4.00 | 5.25 | 5.25 |
| #FFFFFF | 4.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7D1E
Deuteranopia (green-blind)
#90812F
Tritanopia (blue-blind)
#94786F
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #8a812a; /* rgb */ color: rgb(138, 129, 42); /* oklch */ color: oklch(59.4% 0.107 103.4);
Tailwind
colors: {
custom: {
50: '#afa569',
500: '#8a812a',
950: '#000000',
},
}SCSS
$custom: #8a812a; $custom-light: #afa569; $custom-dark: #000000;
JSON
{
"hex": "#8a812a",
"rgb": {
"r": 138,
"g": 129,
"b": 42
},
"hsl": {
"h": 54.375,
"s": 53.333,
"l": 35.294
},
"oklch": {
"l": 0.59441,
"c": 0.10682,
"h": 103.4
},
"luminance": 0.21271
}Semantic roles & 50–950 ramp
primary
#8A812A
secondary
#5B64B4
accent
#59DD4B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A