#5A7D1D#5A7D1D
#5A7D1D is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.4% C 0.128 H 127.9°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #5A7D1D |
|---|---|
| RGB | rgb(90, 125, 29) |
| HSL | hsl(82, 62%, 30%) |
| HSV | hsv(82, 77%, 49%) |
| CMYK | cmyk(28%, 0%, 76.8%, 51%) |
| CIE-LAB | lab(48.17, -27.37, 45.23) |
| CIE-LCH | lch(48.17, 52.86, 121.18°) |
| OKLab | oklab(54.39% -0.0785 0.1007) |
| OKLCH | oklch(54.39% 0.128 127.9) |
| XYZ | xyz(11.7718, 16.9293, 3.8096) |
| Luminance | 0.1693 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Dirty Green
#667E2C
ΔE00 2.85
Avocado
#568203
ΔE00 2.85
Swamp
#698339
ΔE00 4.55
Olive Green
#677A04
ΔE00 4.79
Mossy Green
#638B27
ΔE00 5.15
Sap Green
#5C8B15
ΔE00 5.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A7D1D #401D7D
analogous
#7D701D #5A7D1D #2A7D1D
triadic
#5A7D1D #1D5A7D #7D1D5A
tetradic
#5A7D1D #1D7D70 #401D7D #7D1D2A
square
#5A7D1D #1D7D70 #401D7D #7D1D2A
split-complementary
#5A7D1D #1D2A7D #701D7D
monochromatic
#121A06 #364B11 #5A7D1D #7EAF29 #9ED341
Accessibility & contrast
On white
4.79
#5A7D1D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.39
#5A7D1D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A7D1D
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A7D1D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A7D1D | 1.00 | 4.79 | 4.39 | 4.79 |
| #FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#847409
Deuteranopia (green-blind)
#7F7226
Tritanopia (blue-blind)
#5D776B
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #5a7d1d; /* rgb */ color: rgb(90, 125, 29); /* oklch */ color: oklch(54.4% 0.128 127.9);
Tailwind
colors: {
custom: {
50: '#8ca361',
500: '#5a7d1d',
950: '#000000',
},
}SCSS
$custom: #5a7d1d; $custom-light: #8ca361; $custom-dark: #000000;
JSON
{
"hex": "#5a7d1d",
"rgb": {
"r": 90,
"g": 125,
"b": 29
},
"hsl": {
"h": 81.875,
"s": 62.338,
"l": 30.196
},
"oklch": {
"l": 0.54394,
"c": 0.1277,
"h": 127.9
},
"luminance": 0.1693
}Semantic roles & 50–950 ramp
primary
#5A7D1D
secondary
#6C45B1
accent
#42E57E
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0C0F05
muted
#7D7F79