#9FAB31#9FAB31
#9FAB31 is a light, vivid yellow. Relative luminance 0.367; OKLCH L 70.9% C 0.142 H 115.0°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).
Color values
| HEX | #9FAB31 |
|---|---|
| RGB | rgb(159, 171, 49) |
| HSL | hsl(66, 55%, 43%) |
| HSV | hsv(66, 71%, 67%) |
| CMYK | cmyk(7%, 0%, 71.3%, 32.9%) |
| CIE-LAB | lab(67.07, -19.83, 57.93) |
| CIE-LCH | lch(67.07, 61.23, 108.90°) |
| OKLab | oklab(70.93% -0.0601 0.1289) |
| OKLCH | oklch(70.93% 0.142 115) |
| XYZ | xyz(29.4162, 36.7190, 8.4430) |
| Luminance | 0.3672 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea Soup Green
#94A617
ΔE00 2.60
Puke Green
#9AAE07
ΔE00 2.92
Barf Green
#94AC02
ΔE00 3.29
Vomit
#A2A415
ΔE00 3.70
Pea Green
#8EAB12
ΔE00 3.85
Booger
#9BB53C
ΔE00 3.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9FAB31 #3D31AB
analogous
#AB7A31 #9FAB31 #62AB31
triadic
#9FAB31 #319FAB #AB319F
tetradic
#9FAB31 #31AB7A #3D31AB #AB3162
square
#9FAB31 #31AB7A #3D31AB #AB3162
split-complementary
#9FAB31 #3162AB #7A31AB
monochromatic
#474C16 #737B23 #9FAB31 #C0CC4D #D1DA7D
Accessibility & contrast
On white
2.52
#9FAB31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.34
#9FAB31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #9FAB31
8.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9FAB31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9FAB31 | 1.00 | 2.52 | 8.34 | 8.34 |
| #FFFFFF | 2.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.34 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.34 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B7A21C
Deuteranopia (green-blind)
#B7A43B
Tritanopia (blue-blind)
#A9A193
Achromatopsia (no color)
#A3A3A3
Design tokens & code
CSS
--color: #9fab31; /* rgb */ color: rgb(159, 171, 49); /* oklch */ color: oklch(70.9% 0.142 115.0);
Tailwind
colors: {
custom: {
50: '#bfc371',
500: '#9fab31',
950: '#000000',
},
}SCSS
$custom: #9fab31; $custom-light: #bfc371; $custom-dark: #000000;
JSON
{
"hex": "#9fab31",
"rgb": {
"r": 159,
"g": 171,
"b": 49
},
"hsl": {
"h": 65.902,
"s": 55.455,
"l": 43.137
},
"oklch": {
"l": 0.70928,
"c": 0.14224,
"h": 115
},
"luminance": 0.36718
}Semantic roles & 50–950 ramp
primary
#9FAB31
secondary
#7D75C2
accent
#49DF58
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131208
muted
#82817B