#8A841F#8A841F
#8A841F is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.0% C 0.117 H 105.9°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #8A841F |
|---|---|
| RGB | rgb(138, 132, 31) |
| HSL | hsl(57, 63%, 33%) |
| HSV | hsv(57, 78%, 54%) |
| CMYK | cmyk(0%, 4.3%, 77.5%, 45.9%) |
| CIE-LAB | lab(54.03, -9.61, 51.37) |
| CIE-LCH | lch(54.03, 52.27, 100.60°) |
| OKLab | oklab(60.04% -0.0321 0.1125) |
| OKLCH | oklch(60.04% 0.117 105.9) |
| XYZ | xyz(18.9806, 22.0054, 4.5437) |
| Luminance | 0.2200 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.02
Shit Green
#758000
ΔE00 5.55
Baby Poop
#937C00
ΔE00 5.87
Swamp Green
#748500
ΔE00 6.37
Drab
#828344
ΔE00 6.50
Poop Green
#6F7C00
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A841F #1F258A
analogous
#8A4F1F #8A841F #5A8A1F
triadic
#8A841F #1F8A84 #841F8A
tetradic
#8A841F #1F8A4F #1F258A #8A1F5A
square
#8A841F #1F8A4F #1F258A #8A1F5A
split-complementary
#8A841F #1F5A8A #4F1F8A
monochromatic
#262409 #585414 #8A841F #BCB42A #D7CF4C
Accessibility & contrast
On white
3.89
#8A841F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.40
#8A841F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A841F
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A841F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A841F | 1.00 | 3.89 | 5.40 | 5.40 |
| #FFFFFF | 3.89 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.40 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.40 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#928327
Tritanopia (blue-blind)
#957B71
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #8a841f; /* rgb */ color: rgb(138, 132, 31); /* oklch */ color: oklch(60.0% 0.117 105.9);
Tailwind
colors: {
custom: {
50: '#b0a763',
500: '#8a841f',
950: '#000000',
},
}SCSS
$custom: #8a841f; $custom-light: #b0a763; $custom-dark: #000000;
JSON
{
"hex": "#8a841f",
"rgb": {
"r": 138,
"g": 132,
"b": 31
},
"hsl": {
"h": 56.636,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.60044,
"c": 0.11699,
"h": 105.9
},
"luminance": 0.22005
}Semantic roles & 50–950 ramp
primary
#8A841F
secondary
#4B51BA
accent
#4BE641
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A