#9FA42C#9FA42C
#9FA42C is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.3% C 0.138 H 111.9°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).
Color values
| HEX | #9FA42C |
|---|---|
| RGB | rgb(159, 164, 44) |
| HSL | hsl(63, 58%, 41%) |
| HSV | hsv(63, 73%, 64%) |
| CMYK | cmyk(3%, 0%, 73.2%, 35.7%) |
| CIE-LAB | lab(65.05, -16.53, 57.79) |
| CIE-LCH | lch(65.05, 60.11, 105.96°) |
| OKLab | oklab(69.3% -0.0513 0.1278) |
| OKLCH | oklch(69.3% 0.138 111.9) |
| XYZ | xyz(28.0291, 34.1044, 7.4887) |
| Luminance | 0.3410 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 2.10
Pea Soup Green
#94A617
ΔE00 3.16
Puke
#A5A502
ΔE00 3.18
Pea Soup
#929901
ΔE00 4.01
Baby Poop Green
#8F9805
ΔE00 4.38
Puke Green
#9AAE07
ΔE00 4.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9FA42C #312CA4
analogous
#A46D2C #9FA42C #63A42C
triadic
#9FA42C #2C9FA4 #A42C9F
tetradic
#9FA42C #2CA46D #312CA4 #A42C63
square
#9FA42C #2CA46D #312CA4 #A42C63
split-complementary
#9FA42C #2C63A4 #6D2CA4
monochromatic
#414312 #70741F #9FA42C #C6CC41 #D5D971
Accessibility & contrast
On white
2.69
#9FA42C on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.82
#9FA42C on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #9FA42C
7.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9FA42C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9FA42C | 1.00 | 2.69 | 7.82 | 7.82 |
| #FFFFFF | 2.69 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B19C15
Deuteranopia (green-blind)
#B19F36
Tritanopia (blue-blind)
#AA9A8D
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #9fa42c; /* rgb */ color: rgb(159, 164, 44); /* oklch */ color: oklch(69.3% 0.138 111.9);
Tailwind
colors: {
custom: {
50: '#bfbe6e',
500: '#9fa42c',
950: '#000000',
},
}SCSS
$custom: #9fa42c; $custom-light: #bfbe6e; $custom-dark: #000000;
JSON
{
"hex": "#9fa42c",
"rgb": {
"r": 159,
"g": 164,
"b": 44
},
"hsl": {
"h": 62.5,
"s": 57.692,
"l": 40.784
},
"oklch": {
"l": 0.69299,
"c": 0.13769,
"h": 111.9
},
"luminance": 0.34104
}Semantic roles & 50–950 ramp
primary
#9FA42C
secondary
#6F6BC0
accent
#47E14D
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B