#8A811F#8A811F
#8A811F is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.4% C 0.114 H 103.9°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #8A811F |
|---|---|
| RGB | rgb(138, 129, 31) |
| HSL | hsl(55, 63%, 33%) |
| HSV | hsv(55, 78%, 54%) |
| CMYK | cmyk(0%, 6.5%, 77.5%, 45.9%) |
| CIE-LAB | lab(53.17, -7.97, 50.58) |
| CIE-LCH | lch(53.17, 51.20, 98.96°) |
| OKLab | oklab(59.36% -0.0275 0.1108) |
| OKLCH | oklch(59.36% 0.114 103.9) |
| XYZ | xyz(18.5796, 21.2035, 4.4101) |
| Luminance | 0.2120 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.32
Baby Poop
#937C00
ΔE00 4.88
Hazel
#8E7618
ΔE00 5.82
Shit Green
#758000
ΔE00 6.07
Ugly Brown
#7D7103
ΔE00 6.15
Diarrhea
#9F8303
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A811F #1F288A
analogous
#8A4B1F #8A811F #5D8A1F
triadic
#8A811F #1F8A81 #811F8A
tetradic
#8A811F #1F8A4B #1F288A #8A1F5D
square
#8A811F #1F8A4B #1F288A #8A1F5D
split-complementary
#8A811F #1F5D8A #4B1F8A
monochromatic
#262409 #585214 #8A811F #BCB02A #D7CB4C
Accessibility & contrast
On white
4.01
#8A811F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.24
#8A811F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A811F
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A811F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A811F | 1.00 | 4.01 | 5.24 | 5.24 |
| #FFFFFF | 4.01 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7C09
Deuteranopia (green-blind)
#908126
Tritanopia (blue-blind)
#95786E
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #8a811f; /* rgb */ color: rgb(138, 129, 31); /* oklch */ color: oklch(59.4% 0.114 103.9);
Tailwind
colors: {
custom: {
50: '#b0a563',
500: '#8a811f',
950: '#000000',
},
}SCSS
$custom: #8a811f; $custom-light: #b0a563; $custom-dark: #000000;
JSON
{
"hex": "#8a811f",
"rgb": {
"r": 138,
"g": 129,
"b": 31
},
"hsl": {
"h": 54.953,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.59358,
"c": 0.11416,
"h": 103.9
},
"luminance": 0.21203
}Semantic roles & 50–950 ramp
primary
#8A811F
secondary
#4B54BA
accent
#4FE641
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A