#5A9F20#5A9F20
#5A9F20 is a light, vivid yellow-green. Relative luminance 0.271; OKLCH L 63.3% C 0.170 H 134.6°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).
Color values
| HEX | #5A9F20 |
|---|---|
| RGB | rgb(90, 159, 32) |
| HSL | hsl(93, 66%, 37%) |
| HSV | hsv(93, 80%, 62%) |
| CMYK | cmyk(43.4%, 0%, 79.9%, 37.6%) |
| CIE-LAB | lab(59.04, -42.44, 54.55) |
| CIE-LCH | lch(59.04, 69.12, 127.88°) |
| OKLab | oklab(63.28% -0.119 0.1208) |
| OKLCH | oklch(63.28% 0.17 134.6) |
| XYZ | xyz(16.8750, 27.0733, 5.7027) |
| Luminance | 0.2707 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Lawn Green
#4DA409
ΔE00 2.36
Grassy Green
#419C03
ΔE00 2.97
Grass Green
#3F9B0B
ΔE00 3.25
Leaf Green
#5CA904
ΔE00 3.58
Grass
#5CAC2D
ΔE00 3.97
Leaf
#71AA34
ΔE00 4.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A9F20 #65209F
analogous
#9A9F20 #5A9F20 #209F25
triadic
#5A9F20 #205A9F #9F205A
tetradic
#5A9F20 #209A9F #65209F #9F2520
square
#5A9F20 #209A9F #65209F #9F2520
split-complementary
#5A9F20 #25209F #9F209A
monochromatic
#20390B #3D6C16 #5A9F20 #77D22A #97DE5B
Accessibility & contrast
On white
3.27
#5A9F20 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.41
#5A9F20 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5A9F20
6.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A9F20 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5A9F20 | 1.00 | 3.27 | 6.41 | 6.41 |
| #FFFFFF | 3.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.41 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.41 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A59200
Deuteranopia (green-blind)
#9C8C2E
Tritanopia (blue-blind)
#599988
Achromatopsia (no color)
#8E8E8E
Design tokens & code
CSS
--color: #5a9f20; /* rgb */ color: rgb(90, 159, 32); /* oklch */ color: oklch(63.3% 0.170 134.6);
Tailwind
colors: {
custom: {
50: '#8fbc67',
500: '#5a9f20',
950: '#000000',
},
}SCSS
$custom: #5a9f20; $custom-light: #8fbc67; $custom-dark: #000000;
JSON
{
"hex": "#5a9f20",
"rgb": {
"r": 90,
"g": 159,
"b": 32
},
"hsl": {
"h": 92.598,
"s": 66.492,
"l": 37.451
},
"oklch": {
"l": 0.63276,
"c": 0.16956,
"h": 134.6
},
"luminance": 0.27074
}Semantic roles & 50–950 ramp
primary
#5A9F20
secondary
#9259C2
accent
#3EE99B
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1206
muted
#7E817A