#5A7F15#5A7F15
#5A7F15 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.9% C 0.135 H 128.0°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).
Color values
| HEX | #5A7F15 |
|---|---|
| RGB | rgb(90, 127, 21) |
| HSL | hsl(81, 72%, 29%) |
| HSV | hsv(81, 83%, 50%) |
| CMYK | cmyk(29.1%, 0%, 83.5%, 50.2%) |
| CIE-LAB | lab(48.77, -28.75, 48.44) |
| CIE-LCH | lch(48.77, 56.33, 120.69°) |
| OKLab | oklab(54.86% -0.0828 0.1062) |
| OKLCH | oklch(54.86% 0.135 128) |
| XYZ | xyz(11.9412, 17.4063, 3.4399) |
| Luminance | 0.1741 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Avocado
#568203
ΔE00 1.73
Dirty Green
#667E2C
ΔE00 3.42
Sap Green
#5C8B15
ΔE00 4.37
Mossy Green
#638B27
ΔE00 4.56
Olive Green
#677A04
ΔE00 4.58
Swamp
#698339
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A7F15 #3A157F
analogous
#7F6F15 #5A7F15 #257F15
triadic
#5A7F15 #155A7F #7F155A
tetradic
#5A7F15 #157F6F #3A157F #7F1525
square
#5A7F15 #157F6F #3A157F #7F1525
split-complementary
#5A7F15 #15257F #6F157F
monochromatic
#131A04 #354A0C #5A7F15 #7FB41E #A1DD31
Accessibility & contrast
On white
4.69
#5A7F15 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.48
#5A7F15 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A7F15
4.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A7F15 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A7F15 | 1.00 | 4.69 | 4.48 | 4.69 |
| #FFFFFF | 4.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#817321
Tritanopia (blue-blind)
#5E796C
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #5a7f15; /* rgb */ color: rgb(90, 127, 21); /* oklch */ color: oklch(54.9% 0.135 128.0);
Tailwind
colors: {
custom: {
50: '#8da45d',
500: '#5a7f15',
950: '#000000',
},
}SCSS
$custom: #5a7f15; $custom-light: #8da45d; $custom-dark: #000000;
JSON
{
"hex": "#5a7f15",
"rgb": {
"r": 90,
"g": 127,
"b": 21
},
"hsl": {
"h": 80.943,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.54865,
"c": 0.13465,
"h": 128
},
"luminance": 0.17407
}Semantic roles & 50–950 ramp
primary
#5A7F15
secondary
#663CB4
accent
#39EE79
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0D0F05
muted
#7D7F79