#9C8F21#9C8F21
#9C8F21 is a light, vivid yellow. Relative luminance 0.268; OKLCH L 64.2% C 0.124 H 102.2°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).
Color values
| HEX | #9C8F21 |
|---|---|
| RGB | rgb(156, 143, 33) |
| HSL | hsl(54, 65%, 37%) |
| HSV | hsv(54, 79%, 61%) |
| CMYK | cmyk(0%, 8.3%, 78.8%, 38.8%) |
| CIE-LAB | lab(58.81, -7.27, 55.68) |
| CIE-LCH | lch(58.81, 56.15, 97.44°) |
| OKLab | oklab(64.24% -0.0263 0.1213) |
| OKLCH | oklch(64.24% 0.124 102.2) |
| XYZ | xyz(23.8084, 26.8237, 5.3620) |
| Luminance | 0.2682 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poo
#AB9004
ΔE00 4.70
Baby Shit Brown
#AD900D
ΔE00 5.15
Dark Mustard
#A88905
ΔE00 5.65
Diarrhea
#9F8303
ΔE00 5.70
Brown Yellow
#B29705
ΔE00 5.81
Pea Soup
#929901
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9C8F21 #212E9C
analogous
#9C5221 #9C8F21 #6B9C21
triadic
#9C8F21 #219C8F #8F219C
tetradic
#9C8F21 #219C52 #212E9C #9C216B
square
#9C8F21 #219C52 #212E9C #9C216B
split-complementary
#9C8F21 #216B9C #52219C
monochromatic
#37320C #696116 #9C8F21 #CFBD2C #DCCF5B
Accessibility & contrast
On white
3.30
#9C8F21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.36
#9C8F21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9C8F21
6.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9C8F21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9C8F21 | 1.00 | 3.30 | 6.36 | 6.36 |
| #FFFFFF | 3.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.36 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.36 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9D8A05
Deuteranopia (green-blind)
#A19029
Tritanopia (blue-blind)
#A8847A
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #9c8f21; /* rgb */ color: rgb(156, 143, 33); /* oklch */ color: oklch(64.2% 0.124 102.2);
Tailwind
colors: {
custom: {
50: '#bdaf66',
500: '#9c8f21',
950: '#000000',
},
}SCSS
$custom: #9c8f21; $custom-light: #bdaf66; $custom-dark: #000000;
JSON
{
"hex": "#9c8f21",
"rgb": {
"r": 156,
"g": 143,
"b": 33
},
"hsl": {
"h": 53.659,
"s": 65.079,
"l": 37.059
},
"oklch": {
"l": 0.64244,
"c": 0.12412,
"h": 102.2
},
"luminance": 0.26823
}Semantic roles & 50–950 ramp
primary
#9C8F21
secondary
#5863C1
accent
#52E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A