#9E9822#9E9822
#9E9822 is a light, vivid yellow. Relative luminance 0.298; OKLCH L 66.4% C 0.131 H 106.4°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).
Color values
| HEX | #9E9822 |
|---|---|
| RGB | rgb(158, 152, 34) |
| HSL | hsl(57, 65%, 38%) |
| HSV | hsv(57, 78%, 62%) |
| CMYK | cmyk(0%, 3.8%, 78.5%, 38%) |
| CIE-LAB | lab(61.52, -11.15, 57.87) |
| CIE-LCH | lch(61.52, 58.93, 100.90°) |
| OKLab | oklab(66.44% -0.0372 0.1261) |
| OKLCH | oklch(66.44% 0.131 106.4) |
| XYZ | xyz(25.6186, 29.8420, 5.9237) |
| Luminance | 0.2984 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup
#929901
ΔE00 3.63
Baby Poop Green
#8F9805
ΔE00 4.10
Vomit
#A2A415
ΔE00 4.15
Puke
#A5A502
ΔE00 4.63
Baby Shit Green
#889717
ΔE00 5.70
Brown Yellow
#B29705
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E9822 #22289E
analogous
#9E5A22 #9E9822 #669E22
triadic
#9E9822 #229E98 #98229E
tetradic
#9E9822 #229E5A #22289E #9E2266
square
#9E9822 #229E5A #22289E #9E2266
split-complementary
#9E9822 #22669E #5A229E
monochromatic
#39370C #6C6817 #9E9822 #D0C82D #DCD65E
Accessibility & contrast
On white
3.01
#9E9822 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.97
#9E9822 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9E9822
6.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E9822 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9E9822 | 1.00 | 3.01 | 6.97 | 6.97 |
| #FFFFFF | 3.01 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.97 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.97 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A69201
Deuteranopia (green-blind)
#A8972C
Tritanopia (blue-blind)
#AA8D82
Achromatopsia (no color)
#959595
Design tokens & code
CSS
--color: #9e9822; /* rgb */ color: rgb(158, 152, 34); /* oklch */ color: oklch(66.4% 0.131 106.4);
Tailwind
colors: {
custom: {
50: '#beb668',
500: '#9e9822',
950: '#000000',
},
}SCSS
$custom: #9e9822; $custom-light: #beb668; $custom-dark: #000000;
JSON
{
"hex": "#9e9822",
"rgb": {
"r": 158,
"g": 152,
"b": 34
},
"hsl": {
"h": 57.097,
"s": 64.583,
"l": 37.647
},
"oklch": {
"l": 0.66444,
"c": 0.13146,
"h": 106.4
},
"luminance": 0.29841
}Semantic roles & 50–950 ramp
primary
#9E9822
secondary
#5B60C1
accent
#48E840
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A