#2F771F#2F771F
#2F771F is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.5% C 0.141 H 140.4°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2F771F |
|---|---|
| RGB | rgb(47, 119, 31) |
| HSL | hsl(109, 59%, 29%) |
| HSV | hsv(109, 74%, 47%) |
| CMYK | cmyk(60.5%, 0%, 73.9%, 53.3%) |
| CIE-LAB | lab(44.08, -39.71, 39.66) |
| CIE-LCH | lch(44.08, 56.13, 135.03°) |
| OKLab | oklab(50.48% -0.1088 0.0901) |
| OKLCH | oklch(50.48% 0.141 140.4) |
| XYZ | xyz(8.0161, 13.8962, 3.5559) |
| Luminance | 0.1390 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.70
Darkish Green
#287C37
ΔE00 4.35
Green
#008000
ΔE00 4.56
Dark Grass Green
#388004
ΔE00 4.76
Darkgreen
#006400
ΔE00 7.05
Forestgreen (CSS)
#228B22
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F771F #671F77
analogous
#5B771F #2F771F #1F773B
triadic
#2F771F #1F2F77 #771F2F
tetradic
#2F771F #1F5B77 #671F77 #773B1F
square
#2F771F #1F5B77 #671F77 #773B1F
split-complementary
#2F771F #3B1F77 #771F5B
monochromatic
#0A1806 #1C4612 #2F771F #42A82C #5CCE43
Accessibility & contrast
On white
5.56
#2F771F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.78
#2F771F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F771F
5.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F771F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F771F | 1.00 | 5.56 | 3.78 | 5.56 |
| #FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7A6C11
Deuteranopia (green-blind)
#716628
Tritanopia (blue-blind)
#267366
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #2f771f; /* rgb */ color: rgb(47, 119, 31); /* oklch */ color: oklch(50.5% 0.141 140.4);
Tailwind
colors: {
custom: {
50: '#719f60',
500: '#2f771f',
950: '#000000',
},
}SCSS
$custom: #2f771f; $custom-light: #719f60; $custom-dark: #000000;
JSON
{
"hex": "#2f771f",
"rgb": {
"r": 47,
"g": 119,
"b": 31
},
"hsl": {
"h": 109.091,
"s": 58.667,
"l": 29.412
},
"oklch": {
"l": 0.5048,
"c": 0.14131,
"h": 140.4
},
"luminance": 0.13897
}Semantic roles & 50–950 ramp
primary
#2F771F
secondary
#9847AB
accent
#46E2C6
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79