#5A9D1F#5A9D1F
#5A9D1F is a light, vivid yellow-green. Relative luminance 0.264; OKLCH L 62.7% C 0.168 H 134.3°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).
Color values
| HEX | #5A9D1F |
|---|---|
| RGB | rgb(90, 157, 31) |
| HSL | hsl(92, 67%, 37%) |
| HSV | hsv(92, 80%, 62%) |
| CMYK | cmyk(42.7%, 0%, 80.3%, 38.4%) |
| CIE-LAB | lab(58.40, -41.66, 54.26) |
| CIE-LCH | lch(58.40, 68.41, 127.51°) |
| OKLab | oklab(62.75% -0.117 0.12) |
| OKLCH | oklch(62.75% 0.168 134.3) |
| XYZ | xyz(16.5204, 26.3856, 5.5185) |
| Luminance | 0.2639 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Lawn Green
#4DA409
ΔE00 2.82
Grassy Green
#419C03
ΔE00 2.87
Grass Green
#3F9B0B
ΔE00 3.11
Leaf Green
#5CA904
ΔE00 4.11
Grass
#5CAC2D
ΔE00 4.60
Leaf
#71AA34
ΔE00 4.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A9D1F #621F9D
analogous
#999D1F #5A9D1F #1F9D23
triadic
#5A9D1F #1F5A9D #9D1F5A
tetradic
#5A9D1F #1F999D #621F9D #9D231F
square
#5A9D1F #1F999D #621F9D #9D231F
split-complementary
#5A9D1F #231F9D #9D1F99
monochromatic
#1F370B #3D6A15 #5A9D1F #77D029 #97DE58
Accessibility & contrast
On white
3.35
#5A9D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.28
#5A9D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5A9D1F
6.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A9D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5A9D1F | 1.00 | 3.35 | 6.28 | 6.28 |
| #FFFFFF | 3.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.28 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.28 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A39000
Deuteranopia (green-blind)
#9A8A2D
Tritanopia (blue-blind)
#599786
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #5a9d1f; /* rgb */ color: rgb(90, 157, 31); /* oklch */ color: oklch(62.7% 0.168 134.3);
Tailwind
colors: {
custom: {
50: '#8fba66',
500: '#5a9d1f',
950: '#000000',
},
}SCSS
$custom: #5a9d1f; $custom-light: #8fba66; $custom-dark: #000000;
JSON
{
"hex": "#5a9d1f",
"rgb": {
"r": 90,
"g": 157,
"b": 31
},
"hsl": {
"h": 91.905,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.62749,
"c": 0.16759,
"h": 134.3
},
"luminance": 0.26387
}Semantic roles & 50–950 ramp
primary
#5A9D1F
secondary
#8F56C2
accent
#3EEA99
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1206
muted
#7E817A