#9E8D22#9E8D22
#9E8D22 is a light, vivid yellow. Relative luminance 0.264; OKLCH L 64.0% C 0.122 H 99.7°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).
Color values
| HEX | #9E8D22 |
|---|---|
| RGB | rgb(158, 141, 34) |
| HSL | hsl(52, 65%, 38%) |
| HSV | hsv(52, 78%, 62%) |
| CMYK | cmyk(0%, 10.8%, 78.5%, 38%) |
| CIE-LAB | lab(58.45, -5.24, 55.08) |
| CIE-LCH | lch(58.45, 55.33, 95.43°) |
| OKLab | oklab(64% -0.0206 0.1201) |
| OKLCH | oklch(64% 0.122 99.7) |
| XYZ | xyz(23.9154, 26.4355, 5.3559) |
| Luminance | 0.2643 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poo
#AB9004
ΔE00 3.95
Baby Shit Brown
#AD900D
ΔE00 4.30
Dark Mustard
#A88905
ΔE00 4.49
Diarrhea
#9F8303
ΔE00 4.53
Brown Yellow
#B29705
ΔE00 5.44
Yellowy Brown
#AE8B0C
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E8D22 #22339E
analogous
#9E4F22 #9E8D22 #719E22
triadic
#9E8D22 #229E8D #8D229E
tetradic
#9E8D22 #229E4F #22339E #9E2271
square
#9E8D22 #229E4F #22339E #9E2271
split-complementary
#9E8D22 #22719E #4F229E
monochromatic
#39330C #6C6017 #9E8D22 #D0BA2D #DCCB5E
Accessibility & contrast
On white
3.34
#9E8D22 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.29
#9E8D22 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9E8D22
6.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E8D22 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9E8D22 | 1.00 | 3.34 | 6.29 | 6.29 |
| #FFFFFF | 3.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.29 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.29 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9B8909
Deuteranopia (green-blind)
#A08F2A
Tritanopia (blue-blind)
#AB8279
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #9e8d22; /* rgb */ color: rgb(158, 141, 34); /* oklch */ color: oklch(64.0% 0.122 99.7);
Tailwind
colors: {
custom: {
50: '#beae66',
500: '#9e8d22',
950: '#000000',
},
}SCSS
$custom: #9e8d22; $custom-light: #beae66; $custom-dark: #000000;
JSON
{
"hex": "#9e8d22",
"rgb": {
"r": 158,
"g": 141,
"b": 34
},
"hsl": {
"h": 51.774,
"s": 64.583,
"l": 37.647
},
"oklch": {
"l": 0.64003,
"c": 0.12188,
"h": 99.7
},
"luminance": 0.26434
}Semantic roles & 50–950 ramp
primary
#9E8D22
secondary
#5B69C1
accent
#57E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A