#5A7D1B#5A7D1B
#5A7D1B is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.4% C 0.129 H 127.8°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #5A7D1B |
|---|---|
| RGB | rgb(90, 125, 27) |
| HSL | hsl(81, 64%, 30%) |
| HSV | hsv(81, 78%, 49%) |
| CMYK | cmyk(28%, 0%, 78.4%, 51%) |
| CIE-LAB | lab(48.16, -27.48, 45.93) |
| CIE-LCH | lch(48.16, 53.53, 120.89°) |
| OKLab | oklab(54.38% -0.079 0.1019) |
| OKLCH | oklch(54.38% 0.129 127.8) |
| XYZ | xyz(11.7479, 16.9198, 3.6836) |
| Luminance | 0.1692 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Avocado
#568203
ΔE00 2.69
Dirty Green
#667E2C
ΔE00 2.94
Olive Green
#677A04
ΔE00 4.63
Swamp
#698339
ΔE00 4.70
Mossy Green
#638B27
ΔE00 5.16
Sap Green
#5C8B15
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A7D1B #3E1B7D
analogous
#7D6F1B #5A7D1B #297D1B
triadic
#5A7D1B #1B5A7D #7D1B5A
tetradic
#5A7D1B #1B7D6F #3E1B7D #7D1B29
square
#5A7D1B #1B7D6F #3E1B7D #7D1B29
split-complementary
#5A7D1B #1B297D #6F1B7D
monochromatic
#121905 #364B10 #5A7D1B #7EAF26 #9FD53D
Accessibility & contrast
On white
4.79
#5A7D1B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.38
#5A7D1B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A7D1B
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A7D1B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A7D1B | 1.00 | 4.79 | 4.38 | 4.79 |
| #FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#847404
Deuteranopia (green-blind)
#7F7225
Tritanopia (blue-blind)
#5D776B
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #5a7d1b; /* rgb */ color: rgb(90, 125, 27); /* oklch */ color: oklch(54.4% 0.129 127.8);
Tailwind
colors: {
custom: {
50: '#8ca360',
500: '#5a7d1b',
950: '#000000',
},
}SCSS
$custom: #5a7d1b; $custom-light: #8ca360; $custom-dark: #000000;
JSON
{
"hex": "#5a7d1b",
"rgb": {
"r": 90,
"g": 125,
"b": 27
},
"hsl": {
"h": 81.429,
"s": 64.474,
"l": 29.804
},
"oklch": {
"l": 0.5438,
"c": 0.1289,
"h": 127.8
},
"luminance": 0.1692
}Semantic roles & 50–950 ramp
primary
#5A7D1B
secondary
#6A43B1
accent
#40E77C
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0C0F05
muted
#7D7F79