#5A7E1F#5A7E1F
#5A7E1F is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.7% C 0.128 H 128.4°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).
Color values
| HEX | #5A7E1F |
|---|---|
| RGB | rgb(90, 126, 31) |
| HSL | hsl(83, 61%, 31%) |
| HSV | hsv(83, 75%, 49%) |
| CMYK | cmyk(28.6%, 0%, 75.4%, 50.6%) |
| CIE-LAB | lab(48.50, -27.73, 44.80) |
| CIE-LCH | lch(48.50, 52.69, 121.75°) |
| OKLab | oklab(54.67% -0.0793 0.1002) |
| OKLCH | oklch(54.67% 0.128 128.4) |
| XYZ | xyz(11.9246, 17.1940, 3.9866) |
| Luminance | 0.1719 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Avocado
#568203
ΔE00 2.77
Dirty Green
#667E2C
ΔE00 2.83
Swamp
#698339
ΔE00 4.31
Mossy Green
#638B27
ΔE00 4.80
Sap Green
#5C8B15
ΔE00 4.97
Olive Green
#677A04
ΔE00 5.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A7E1F #431F7E
analogous
#7E721F #5A7E1F #2A7E1F
triadic
#5A7E1F #1F5A7E #7E1F5A
tetradic
#5A7E1F #1F7E72 #431F7E #7E1F2A
square
#5A7E1F #1F7E72 #431F7E #7E1F2A
split-complementary
#5A7E1F #1F2A7E #721F7E
monochromatic
#141C07 #374D13 #5A7E1F #7DAF2B #9DD146
Accessibility & contrast
On white
4.73
#5A7E1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.44
#5A7E1F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A7E1F
4.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A7E1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A7E1F | 1.00 | 4.73 | 4.44 | 4.73 |
| #FFFFFF | 4.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#84750D
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#5D786C
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #5a7e1f; /* rgb */ color: rgb(90, 126, 31); /* oklch */ color: oklch(54.7% 0.128 128.4);
Tailwind
colors: {
custom: {
50: '#8ca362',
500: '#5a7e1f',
950: '#000000',
},
}SCSS
$custom: #5a7e1f; $custom-light: #8ca362; $custom-dark: #000000;
JSON
{
"hex": "#5a7e1f",
"rgb": {
"r": 90,
"g": 126,
"b": 31
},
"hsl": {
"h": 82.737,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.54668,
"c": 0.12776,
"h": 128.4
},
"luminance": 0.17194
}Semantic roles & 50–950 ramp
primary
#5A7E1F
secondary
#7048B1
accent
#44E481
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A