#9FAB21#9FAB21
#9FAB21 is a light, vivid yellow. Relative luminance 0.366; OKLCH L 70.8% C 0.151 H 114.8°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).
Color values
| HEX | #9FAB21 |
|---|---|
| RGB | rgb(159, 171, 33) |
| HSL | hsl(65, 68%, 40%) |
| HSV | hsv(65, 81%, 67%) |
| CMYK | cmyk(7%, 0%, 80.7%, 32.9%) |
| CIE-LAB | lab(66.98, -20.54, 63.07) |
| CIE-LCH | lch(66.98, 66.33, 108.04°) |
| OKLab | oklab(70.83% -0.0634 0.137) |
| OKLCH | oklch(70.83% 0.151 114.8) |
| XYZ | xyz(29.1364, 36.6071, 6.9696) |
| Luminance | 0.3661 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Green
#9AAE07
ΔE00 1.98
Pea Soup Green
#94A617
ΔE00 2.28
Barf Green
#94AC02
ΔE00 2.64
Vomit
#A2A415
ΔE00 3.00
Mustard Green
#A8B504
ΔE00 3.42
Puke
#A5A502
ΔE00 3.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9FAB21 #2D21AB
analogous
#AB7221 #9FAB21 #5AAB21
triadic
#9FAB21 #219FAB #AB219F
tetradic
#9FAB21 #21AB72 #2D21AB #AB215A
square
#9FAB21 #21AB72 #2D21AB #AB215A
split-complementary
#9FAB21 #215AAB #7221AB
monochromatic
#40440D #6F7817 #9FAB21 #C9D732 #D7E165
Accessibility & contrast
On white
2.52
#9FAB21 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.32
#9FAB21 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #9FAB21
8.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9FAB21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9FAB21 | 1.00 | 2.52 | 8.32 | 8.32 |
| #FFFFFF | 2.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.32 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.32 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B8A200
Deuteranopia (green-blind)
#B7A42F
Tritanopia (blue-blind)
#AAA192
Achromatopsia (no color)
#A3A3A3
Design tokens & code
CSS
--color: #9fab21; /* rgb */ color: rgb(159, 171, 33); /* oklch */ color: oklch(70.8% 0.151 114.8);
Tailwind
colors: {
custom: {
50: '#bfc36a',
500: '#9fab21',
950: '#000000',
},
}SCSS
$custom: #9fab21; $custom-light: #bfc36a; $custom-dark: #000000;
JSON
{
"hex": "#9fab21",
"rgb": {
"r": 159,
"g": 171,
"b": 33
},
"hsl": {
"h": 65.217,
"s": 67.647,
"l": 40
},
"oklch": {
"l": 0.70833,
"c": 0.15095,
"h": 114.8
},
"luminance": 0.36607
}Semantic roles & 50–950 ramp
primary
#9FAB21
secondary
#6A61C7
accent
#3DEB4C
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A