#9E8020#9E8020
#9E8020 is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 61.2% C 0.114 H 90.3°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).
Color values
| HEX | #9E8020 |
|---|---|
| RGB | rgb(158, 128, 32) |
| HSL | hsl(46, 66%, 37%) |
| HSV | hsv(46, 80%, 62%) |
| CMYK | cmyk(0%, 19%, 79.7%, 38%) |
| CIE-LAB | lab(54.88, 1.86, 52.52) |
| CIE-LCH | lch(54.88, 52.55, 87.97°) |
| OKLab | oklab(61.18% -0.0006 0.1142) |
| OKLCH | oklch(61.18% 0.114 90.3) |
| XYZ | xyz(22.0818, 22.8132, 4.6065) |
| Luminance | 0.2281 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 2.67
Yellowish Brown
#9B7A01
ΔE00 2.68
Puke Brown
#947706
ΔE00 3.66
Baby Poop
#937C00
ΔE00 3.67
Dark Mustard
#A88905
ΔE00 4.21
Hazel
#8E7618
ΔE00 4.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E8020 #203E9E
analogous
#9E4120 #9E8020 #7D9E20
triadic
#9E8020 #209E80 #80209E
tetradic
#9E8020 #209E41 #203E9E #9E207D
square
#9E8020 #209E41 #203E9E #9E207D
split-complementary
#9E8020 #207D9E #41209E
monochromatic
#382E0B #6B5716 #9E8020 #D1A92A #DEBF5B
Accessibility & contrast
On white
3.78
#9E8020 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.56
#9E8020 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9E8020
5.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E8020 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9E8020 | 1.00 | 3.78 | 5.56 | 5.56 |
| #FFFFFF | 3.78 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.56 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.56 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8F7E0B
Deuteranopia (green-blind)
#978726
Tritanopia (blue-blind)
#AC746E
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #9e8020; /* rgb */ color: rgb(158, 128, 32); /* oklch */ color: oklch(61.2% 0.114 90.3);
Tailwind
colors: {
custom: {
50: '#bfa464',
500: '#9e8020',
950: '#000000',
},
}SCSS
$custom: #9e8020; $custom-light: #bfa464; $custom-dark: #000000;
JSON
{
"hex": "#9e8020",
"rgb": {
"r": 158,
"g": 128,
"b": 32
},
"hsl": {
"h": 45.714,
"s": 66.316,
"l": 37.255
},
"oklch": {
"l": 0.61177,
"c": 0.11421,
"h": 90.3
},
"luminance": 0.22812
}Semantic roles & 50–950 ramp
primary
#9E8020
secondary
#5871C2
accent
#67E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A