#2C771F#2C771F
#2C771F is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.4% C 0.143 H 141.0°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).
Color values
| HEX | #2C771F |
|---|---|
| RGB | rgb(44, 119, 31) |
| HSL | hsl(111, 59%, 29%) |
| HSV | hsv(111, 74%, 47%) |
| CMYK | cmyk(63%, 0%, 73.9%, 53.3%) |
| CIE-LAB | lab(43.98, -40.51, 39.53) |
| CIE-LCH | lch(43.98, 56.60, 135.70°) |
| OKLab | oklab(50.37% -0.1108 0.0899) |
| OKLCH | oklch(50.37% 0.143 141) |
| XYZ | xyz(7.8825, 13.8273, 3.5496) |
| Luminance | 0.1383 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.71
Darkish Green
#287C37
ΔE00 4.20
Green
#008000
ΔE00 4.46
Dark Grass Green
#388004
ΔE00 4.93
Darkgreen
#006400
ΔE00 6.93
Forestgreen (CSS)
#228B22
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C771F #6A1F77
analogous
#58771F #2C771F #1F773E
triadic
#2C771F #1F2C77 #771F2C
tetradic
#2C771F #1F5877 #6A1F77 #773E1F
square
#2C771F #1F5877 #6A1F77 #773E1F
split-complementary
#2C771F #3E1F77 #771F58
monochromatic
#091806 #1A4612 #2C771F #3EA82C #57CE43
Accessibility & contrast
On white
5.58
#2C771F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.77
#2C771F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2C771F
5.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C771F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C771F | 1.00 | 5.58 | 3.77 | 5.58 |
| #FFFFFF | 5.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7A6C11
Deuteranopia (green-blind)
#716628
Tritanopia (blue-blind)
#217366
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #2c771f; /* rgb */ color: rgb(44, 119, 31); /* oklch */ color: oklch(50.4% 0.143 141.0);
Tailwind
colors: {
custom: {
50: '#6f9f60',
500: '#2c771f',
950: '#000000',
},
}SCSS
$custom: #2c771f; $custom-light: #6f9f60; $custom-dark: #000000;
JSON
{
"hex": "#2c771f",
"rgb": {
"r": 44,
"g": 119,
"b": 31
},
"hsl": {
"h": 111.136,
"s": 58.667,
"l": 29.412
},
"oklch": {
"l": 0.5037,
"c": 0.14266,
"h": 141
},
"luminance": 0.13828
}Semantic roles & 50–950 ramp
primary
#2C771F
secondary
#9C47AB
accent
#46E2CB
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79