#5A7F17#5A7F17
#5A7F17 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.9% C 0.134 H 128.1°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).
Color values
| HEX | #5A7F17 |
|---|---|
| RGB | rgb(90, 127, 23) |
| HSL | hsl(81, 69%, 29%) |
| HSV | hsv(81, 82%, 50%) |
| CMYK | cmyk(29.1%, 0%, 81.9%, 50.2%) |
| CIE-LAB | lab(48.78, -28.66, 47.84) |
| CIE-LCH | lch(48.78, 55.77, 120.92°) |
| OKLab | oklab(54.88% -0.0824 0.1052) |
| OKLCH | oklch(54.88% 0.134 128.1) |
| XYZ | xyz(11.9605, 17.4140, 3.5415) |
| Luminance | 0.1741 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Avocado
#568203
ΔE00 1.85
Dirty Green
#667E2C
ΔE00 3.32
Sap Green
#5C8B15
ΔE00 4.39
Mossy Green
#638B27
ΔE00 4.52
Olive Green
#677A04
ΔE00 4.69
Swamp
#698339
ΔE00 4.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A7F17 #3C177F
analogous
#7F7017 #5A7F17 #267F17
triadic
#5A7F17 #175A7F #7F175A
tetradic
#5A7F17 #177F70 #3C177F #7F1726
square
#5A7F17 #177F70 #3C177F #7F1726
split-complementary
#5A7F17 #17267F #70177F
monochromatic
#121A05 #354B0E #5A7F17 #7FB320 #A0DB36
Accessibility & contrast
On white
4.68
#5A7F17 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.48
#5A7F17 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A7F17
4.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A7F17 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A7F17 | 1.00 | 4.68 | 4.48 | 4.68 |
| #FFFFFF | 4.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#817322
Tritanopia (blue-blind)
#5D796C
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #5a7f17; /* rgb */ color: rgb(90, 127, 23); /* oklch */ color: oklch(54.9% 0.134 128.1);
Tailwind
colors: {
custom: {
50: '#8ca45e',
500: '#5a7f17',
950: '#000000',
},
}SCSS
$custom: #5a7f17; $custom-light: #8ca45e; $custom-dark: #000000;
JSON
{
"hex": "#5a7f17",
"rgb": {
"r": 90,
"g": 127,
"b": 23
},
"hsl": {
"h": 81.346,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.54876,
"c": 0.13368,
"h": 128.1
},
"luminance": 0.17414
}Semantic roles & 50–950 ramp
primary
#5A7F17
secondary
#683EB4
accent
#3CEC7A
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79