#5A931F#5A931F
#5A931F is a mid, vivid yellow-green. Relative luminance 0.231; OKLCH L 60.1% C 0.155 H 132.8°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).
Color values
| HEX | #5A931F |
|---|---|
| RGB | rgb(90, 147, 31) |
| HSL | hsl(89, 65%, 35%) |
| HSV | hsv(89, 79%, 58%) |
| CMYK | cmyk(38.8%, 0%, 78.9%, 42.4%) |
| CIE-LAB | lab(55.22, -37.38, 51.27) |
| CIE-LCH | lch(55.22, 63.45, 126.09°) |
| OKLab | oklab(60.14% -0.1054 0.1138) |
| OKLCH | oklch(60.14% 0.155 132.8) |
| XYZ | xyz(14.8973, 23.1393, 4.9775) |
| Luminance | 0.2314 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Sap Green
#5C8B15
ΔE00 2.97
Mossy Green
#638B27
ΔE00 3.42
Olivedrab
#6B8E23
ΔE00 3.80
Grass Green
#3F9B0B
ΔE00 4.23
Grassy Green
#419C03
ΔE00 4.33
Moss Green (survey)
#658B38
ΔE00 4.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A931F #581F93
analogous
#93921F #5A931F #20931F
triadic
#5A931F #1F5A93 #931F5A
tetradic
#5A931F #1F9392 #581F93 #931F20
square
#5A931F #1F9392 #581F93 #931F20
split-complementary
#5A931F #1F2093 #921F93
monochromatic
#1C2E0A #3B6014 #5A931F #79C62A #97DA52
Accessibility & contrast
On white
3.73
#5A931F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.63
#5A931F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5A931F
5.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A931F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5A931F | 1.00 | 3.73 | 5.63 | 5.63 |
| #FFFFFF | 3.73 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#92832B
Tritanopia (blue-blind)
#5B8D7D
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #5a931f; /* rgb */ color: rgb(90, 147, 31); /* oklch */ color: oklch(60.1% 0.155 132.8);
Tailwind
colors: {
custom: {
50: '#8eb365',
500: '#5a931f',
950: '#000000',
},
}SCSS
$custom: #5a931f; $custom-light: #8eb365; $custom-dark: #000000;
JSON
{
"hex": "#5a931f",
"rgb": {
"r": 90,
"g": 147,
"b": 31
},
"hsl": {
"h": 89.483,
"s": 65.169,
"l": 34.902
},
"oklch": {
"l": 0.6014,
"c": 0.15511,
"h": 132.8
},
"luminance": 0.2314
}Semantic roles & 50–950 ramp
primary
#5A931F
secondary
#8650BE
accent
#40E892
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A