#9E8A21#9E8A21
#9E8A21 is a light, vivid yellow. Relative luminance 0.256; OKLCH L 63.3% C 0.120 H 97.7°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).
Color values
| HEX | #9E8A21 |
|---|---|
| RGB | rgb(158, 138, 33) |
| HSL | hsl(50, 65%, 37%) |
| HSV | hsv(50, 79%, 62%) |
| CMYK | cmyk(0%, 12.7%, 79.1%, 38%) |
| CIE-LAB | lab(57.61, -3.64, 54.66) |
| CIE-LCH | lch(57.61, 54.78, 93.81°) |
| OKLab | oklab(63.34% -0.0162 0.119) |
| OKLCH | oklch(63.34% 0.12 97.7) |
| XYZ | xyz(23.4648, 25.5571, 5.1356) |
| Luminance | 0.2556 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 3.38
Dark Mustard
#A88905
ΔE00 3.68
Baby Poo
#AB9004
ΔE00 3.89
Baby Shit Brown
#AD900D
ΔE00 4.12
Yellowy Brown
#AE8B0C
ΔE00 4.85
Baby Poop
#937C00
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E8A21 #21359E
analogous
#9E4C21 #9E8A21 #749E21
triadic
#9E8A21 #219E8A #8A219E
tetradic
#9E8A21 #219E4C #21359E #9E2174
square
#9E8A21 #219E4C #21359E #9E2174
split-complementary
#9E8A21 #21749E #4C219E
monochromatic
#39320C #6B5E16 #9E8A21 #D1B62C #DDC85C
Accessibility & contrast
On white
3.44
#9E8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.11
#9E8A21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9E8A21
6.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E8A21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9E8A21 | 1.00 | 3.44 | 6.11 | 6.11 |
| #FFFFFF | 3.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#998708
Deuteranopia (green-blind)
#9E8D28
Tritanopia (blue-blind)
#AB7F76
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #9e8a21; /* rgb */ color: rgb(158, 138, 33); /* oklch */ color: oklch(63.3% 0.120 97.7);
Tailwind
colors: {
custom: {
50: '#bfab66',
500: '#9e8a21',
950: '#000000',
},
}SCSS
$custom: #9e8a21; $custom-light: #bfab66; $custom-dark: #000000;
JSON
{
"hex": "#9e8a21",
"rgb": {
"r": 158,
"g": 138,
"b": 33
},
"hsl": {
"h": 50.4,
"s": 65.445,
"l": 37.451
},
"oklch": {
"l": 0.6334,
"c": 0.12011,
"h": 97.7
},
"luminance": 0.25556
}Semantic roles & 50–950 ramp
primary
#9E8A21
secondary
#596AC1
accent
#5AE83F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A