#5A7F19#5A7F19
#5A7F19 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.9% C 0.133 H 128.2°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).
Color values
| HEX | #5A7F19 |
|---|---|
| RGB | rgb(90, 127, 25) |
| HSL | hsl(82, 67%, 30%) |
| HSV | hsv(82, 80%, 50%) |
| CMYK | cmyk(29.1%, 0%, 80.3%, 50.2%) |
| CIE-LAB | lab(48.79, -28.56, 47.21) |
| CIE-LCH | lch(48.79, 55.17, 121.17°) |
| OKLab | oklab(54.89% -0.082 0.1042) |
| OKLCH | oklch(54.89% 0.133 128.2) |
| XYZ | xyz(11.9813, 17.4223, 3.6511) |
| Luminance | 0.1742 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Avocado
#568203
ΔE00 1.99
Dirty Green
#667E2C
ΔE00 3.21
Sap Green
#5C8B15
ΔE00 4.42
Mossy Green
#638B27
ΔE00 4.49
Swamp
#698339
ΔE00 4.70
Olive Green
#677A04
ΔE00 4.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A7F19 #3E197F
analogous
#7F7119 #5A7F19 #277F19
triadic
#5A7F19 #195A7F #7F195A
tetradic
#5A7F19 #197F71 #3E197F #7F1927
square
#5A7F19 #197F71 #3E197F #7F1927
split-complementary
#5A7F19 #19277F #71197F
monochromatic
#121A05 #364C0F #5A7F19 #7EB223 #9FD83A
Accessibility & contrast
On white
4.68
#5A7F19 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.48
#5A7F19 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A7F19
4.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A7F19 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A7F19 | 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)
#867600
Deuteranopia (green-blind)
#817324
Tritanopia (blue-blind)
#5D796C
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #5a7f19; /* rgb */ color: rgb(90, 127, 25); /* oklch */ color: oklch(54.9% 0.133 128.2);
Tailwind
colors: {
custom: {
50: '#8ca45f',
500: '#5a7f19',
950: '#000000',
},
}SCSS
$custom: #5a7f19; $custom-light: #8ca45f; $custom-dark: #000000;
JSON
{
"hex": "#5a7f19",
"rgb": {
"r": 90,
"g": 127,
"b": 25
},
"hsl": {
"h": 81.765,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.54888,
"c": 0.13263,
"h": 128.2
},
"luminance": 0.17423
}Semantic roles & 50–950 ramp
primary
#5A7F19
secondary
#6A41B3
accent
#3EEA7C
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79