#5A7F16#5A7F16
#5A7F16 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.9% C 0.134 H 128.0°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).
Color values
| HEX | #5A7F16 |
|---|---|
| RGB | rgb(90, 127, 22) |
| HSL | hsl(81, 70%, 29%) |
| HSV | hsv(81, 83%, 50%) |
| CMYK | cmyk(29.1%, 0%, 82.7%, 50.2%) |
| CIE-LAB | lab(48.77, -28.70, 48.15) |
| CIE-LCH | lch(48.77, 56.05, 120.80°) |
| OKLab | oklab(54.87% -0.0826 0.1057) |
| OKLCH | oklch(54.87% 0.134 128) |
| XYZ | xyz(11.9507, 17.4100, 3.4897) |
| Luminance | 0.1741 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Avocado
#568203
ΔE00 1.79
Dirty Green
#667E2C
ΔE00 3.37
Sap Green
#5C8B15
ΔE00 4.38
Mossy Green
#638B27
ΔE00 4.54
Olive Green
#677A04
ΔE00 4.64
Swamp
#698339
ΔE00 4.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A7F16 #3B167F
analogous
#7F7016 #5A7F16 #267F16
triadic
#5A7F16 #165A7F #7F165A
tetradic
#5A7F16 #167F70 #3B167F #7F1626
square
#5A7F16 #167F70 #3B167F #7F1626
split-complementary
#5A7F16 #16267F #70167F
monochromatic
#121A05 #354B0D #5A7F16 #7FB31F #A1DC34
Accessibility & contrast
On white
4.69
#5A7F16 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.48
#5A7F16 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A7F16
4.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A7F16 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A7F16 | 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)
#817322
Tritanopia (blue-blind)
#5D796C
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #5a7f16; /* rgb */ color: rgb(90, 127, 22); /* oklch */ color: oklch(54.9% 0.134 128.0);
Tailwind
colors: {
custom: {
50: '#8ca45e',
500: '#5a7f16',
950: '#000000',
},
}SCSS
$custom: #5a7f16; $custom-light: #8ca45e; $custom-dark: #000000;
JSON
{
"hex": "#5a7f16",
"rgb": {
"r": 90,
"g": 127,
"b": 22
},
"hsl": {
"h": 81.143,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.54871,
"c": 0.13417,
"h": 128
},
"luminance": 0.1741
}Semantic roles & 50–950 ramp
primary
#5A7F16
secondary
#673DB4
accent
#3BED7A
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0C0F05
muted
#7D7F79