#2A771C#2A771C
#2A771C is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.3% C 0.145 H 140.9°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2A771C |
|---|---|
| RGB | rgb(42, 119, 28) |
| HSL | hsl(111, 62%, 29%) |
| HSV | hsv(111, 76%, 47%) |
| CMYK | cmyk(64.7%, 0%, 76.5%, 53.3%) |
| CIE-LAB | lab(43.90, -41.27, 40.62) |
| CIE-LCH | lch(43.90, 57.91, 135.45°) |
| OKLab | oklab(50.28% -0.1129 0.0918) |
| OKLCH | oklch(50.28% 0.145 140.9) |
| XYZ | xyz(7.7609, 13.7690, 3.3471) |
| Luminance | 0.1377 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.57
Green
#008000
ΔE00 4.19
Darkish Green
#287C37
ΔE00 4.50
Dark Grass Green
#388004
ΔE00 4.75
Darkgreen
#006400
ΔE00 6.81
Forestgreen (CSS)
#228B22
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A771C #691C77
analogous
#58771C #2A771C #1C773C
triadic
#2A771C #1C2A77 #771C2A
tetradic
#2A771C #1C5877 #691C77 #773C1C
square
#2A771C #1C5877 #691C77 #773C1C
split-complementary
#2A771C #3C1C77 #771C58
monochromatic
#091906 #194510 #2A771C #3BA928 #53D13C
Accessibility & contrast
On white
5.59
#2A771C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.75
#2A771C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A771C
5.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A771C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A771C | 1.00 | 5.59 | 3.75 | 5.59 |
| #FFFFFF | 5.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7A6C0B
Deuteranopia (green-blind)
#716525
Tritanopia (blue-blind)
#1E7365
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #2a771c; /* rgb */ color: rgb(42, 119, 28); /* oklch */ color: oklch(50.3% 0.145 140.9);
Tailwind
colors: {
custom: {
50: '#6e9f5f',
500: '#2a771c',
950: '#000000',
},
}SCSS
$custom: #2a771c; $custom-light: #6e9f5f; $custom-dark: #000000;
JSON
{
"hex": "#2a771c",
"rgb": {
"r": 42,
"g": 119,
"b": 28
},
"hsl": {
"h": 110.769,
"s": 61.905,
"l": 28.824
},
"oklch": {
"l": 0.50275,
"c": 0.14548,
"h": 140.9
},
"luminance": 0.1377
}Semantic roles & 50–950 ramp
primary
#2A771C
secondary
#9B44AB
accent
#43E5CC
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79