#2A771F#2A771F
#2A771F is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.3% C 0.144 H 141.3°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2A771F |
|---|---|
| RGB | rgb(42, 119, 31) |
| HSL | hsl(113, 59%, 29%) |
| HSV | hsv(113, 74%, 47%) |
| CMYK | cmyk(64.7%, 0%, 73.9%, 53.3%) |
| CIE-LAB | lab(43.92, -41.02, 39.45) |
| CIE-LCH | lch(43.92, 56.91, 136.12°) |
| OKLab | oklab(50.3% -0.112 0.0897) |
| OKLCH | oklch(50.3% 0.144 141.3) |
| XYZ | xyz(7.7986, 13.7841, 3.5457) |
| Luminance | 0.1379 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.74
Darkish Green
#287C37
ΔE00 4.12
Green
#008000
ΔE00 4.41
Dark Grass Green
#388004
ΔE00 5.04
Darkgreen
#006400
ΔE00 6.86
Forestgreen (CSS)
#228B22
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A771F #6C1F77
analogous
#56771F #2A771F #1F7740
triadic
#2A771F #1F2A77 #771F2A
tetradic
#2A771F #1F5677 #6C1F77 #77401F
square
#2A771F #1F5677 #6C1F77 #77401F
split-complementary
#2A771F #401F77 #771F56
monochromatic
#091806 #194612 #2A771F #3BA82C #54CE43
Accessibility & contrast
On white
5.59
#2A771F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.76
#2A771F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A771F
5.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A771F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A771F | 1.00 | 5.59 | 3.76 | 5.59 |
| #FFFFFF | 5.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7A6C11
Deuteranopia (green-blind)
#716528
Tritanopia (blue-blind)
#1D7366
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #2a771f; /* rgb */ color: rgb(42, 119, 31); /* oklch */ color: oklch(50.3% 0.144 141.3);
Tailwind
colors: {
custom: {
50: '#6e9f60',
500: '#2a771f',
950: '#000000',
},
}SCSS
$custom: #2a771f; $custom-light: #6e9f60; $custom-dark: #000000;
JSON
{
"hex": "#2a771f",
"rgb": {
"r": 42,
"g": 119,
"b": 31
},
"hsl": {
"h": 112.5,
"s": 58.667,
"l": 29.412
},
"oklch": {
"l": 0.503,
"c": 0.14353,
"h": 141.3
},
"luminance": 0.13785
}Semantic roles & 50–950 ramp
primary
#2A771F
secondary
#9E47AB
accent
#46E2CE
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79