#5A7F14#5A7F14
#5A7F14 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.9% C 0.135 H 127.9°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).
Color values
| HEX | #5A7F14 |
|---|---|
| RGB | rgb(90, 127, 20) |
| HSL | hsl(81, 73%, 29%) |
| HSV | hsv(81, 84%, 50%) |
| CMYK | cmyk(29.1%, 0%, 84.3%, 50.2%) |
| CIE-LAB | lab(48.76, -28.79, 48.73) |
| CIE-LCH | lch(48.76, 56.60, 120.58°) |
| OKLab | oklab(54.86% -0.083 0.1066) |
| OKLCH | oklch(54.86% 0.135 127.9) |
| XYZ | xyz(11.9321, 17.4026, 3.3921) |
| Luminance | 0.1740 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Avocado
#568203
ΔE00 1.68
Dirty Green
#667E2C
ΔE00 3.48
Sap Green
#5C8B15
ΔE00 4.36
Olive Green
#677A04
ΔE00 4.54
Mossy Green
#638B27
ΔE00 4.59
Swamp
#698339
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A7F14 #39147F
analogous
#7F6F14 #5A7F14 #257F14
triadic
#5A7F14 #145A7F #7F145A
tetradic
#5A7F14 #147F6F #39147F #7F1425
square
#5A7F14 #147F6F #39147F #7F1425
split-complementary
#5A7F14 #14257F #6F147F
monochromatic
#131A04 #354A0C #5A7F14 #7FB41C #A2DE2F
Accessibility & contrast
On white
4.69
#5A7F14 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.48
#5A7F14 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A7F14
4.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A7F14 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A7F14 | 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)
#817320
Tritanopia (blue-blind)
#5E796C
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #5a7f14; /* rgb */ color: rgb(90, 127, 20); /* oklch */ color: oklch(54.9% 0.135 127.9);
Tailwind
colors: {
custom: {
50: '#8da45d',
500: '#5a7f14',
950: '#000000',
},
}SCSS
$custom: #5a7f14; $custom-light: #8da45d; $custom-dark: #000000;
JSON
{
"hex": "#5a7f14",
"rgb": {
"r": 90,
"g": 127,
"b": 20
},
"hsl": {
"h": 80.748,
"s": 72.789,
"l": 28.824
},
"oklch": {
"l": 0.5486,
"c": 0.13511,
"h": 127.9
},
"luminance": 0.17403
}Semantic roles & 50–950 ramp
primary
#5A7F14
secondary
#653BB4
accent
#38EF78
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0D0F05
muted
#7D7F79