#9E8D21#9E8D21
#9E8D21 is a light, vivid yellow. Relative luminance 0.264; OKLCH L 64.0% C 0.122 H 99.8°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).
Color values
| HEX | #9E8D21 |
|---|---|
| RGB | rgb(158, 141, 33) |
| HSL | hsl(52, 65%, 37%) |
| HSV | hsv(52, 79%, 62%) |
| CMYK | cmyk(0%, 10.8%, 79.1%, 38%) |
| CIE-LAB | lab(58.44, -5.28, 55.41) |
| CIE-LCH | lch(58.44, 55.66, 95.44°) |
| OKLab | oklab(64% -0.0208 0.1206) |
| OKLCH | oklch(64% 0.122 99.8) |
| XYZ | xyz(23.9011, 26.4298, 5.2811) |
| Luminance | 0.2643 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poo
#AB9004
ΔE00 3.90
Baby Shit Brown
#AD900D
ΔE00 4.26
Dark Mustard
#A88905
ΔE00 4.46
Diarrhea
#9F8303
ΔE00 4.50
Brown Yellow
#B29705
ΔE00 5.40
Yellowy Brown
#AE8B0C
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E8D21 #21329E
analogous
#9E4F21 #9E8D21 #719E21
triadic
#9E8D21 #219E8D #8D219E
tetradic
#9E8D21 #219E4F #21329E #9E2171
square
#9E8D21 #219E4F #21329E #9E2171
split-complementary
#9E8D21 #21719E #4F219E
monochromatic
#39330C #6B6016 #9E8D21 #D1BA2C #DDCC5C
Accessibility & contrast
On white
3.34
#9E8D21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.29
#9E8D21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9E8D21
6.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E8D21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9E8D21 | 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)
#9B8906
Deuteranopia (green-blind)
#A08F29
Tritanopia (blue-blind)
#AB8279
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #9e8d21; /* rgb */ color: rgb(158, 141, 33); /* oklch */ color: oklch(64.0% 0.122 99.8);
Tailwind
colors: {
custom: {
50: '#bfae66',
500: '#9e8d21',
950: '#000000',
},
}SCSS
$custom: #9e8d21; $custom-light: #bfae66; $custom-dark: #000000;
JSON
{
"hex": "#9e8d21",
"rgb": {
"r": 158,
"g": 141,
"b": 33
},
"hsl": {
"h": 51.84,
"s": 65.445,
"l": 37.451
},
"oklch": {
"l": 0.63997,
"c": 0.12242,
"h": 99.8
},
"luminance": 0.26429
}Semantic roles & 50–950 ramp
primary
#9E8D21
secondary
#5968C1
accent
#56E83F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A