#2F771C#2F771C
#2F771C is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.5% C 0.143 H 140.0°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2F771C |
|---|---|
| RGB | rgb(47, 119, 28) |
| HSL | hsl(107, 62%, 29%) |
| HSV | hsv(107, 76%, 47%) |
| CMYK | cmyk(60.5%, 0%, 76.5%, 53.3%) |
| CIE-LAB | lab(44.06, -39.96, 40.84) |
| CIE-LCH | lch(44.06, 57.14, 134.38°) |
| OKLab | oklab(50.46% -0.1097 0.0922) |
| OKLCH | oklch(50.46% 0.143 140) |
| XYZ | xyz(7.9784, 13.8811, 3.3573) |
| Luminance | 0.1388 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.56
Green
#008000
ΔE00 4.37
Dark Grass Green
#388004
ΔE00 4.47
Darkish Green
#287C37
ΔE00 4.73
Darkgreen
#006400
ΔE00 7.02
Forestgreen (CSS)
#228B22
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F771C #641C77
analogous
#5D771C #2F771C #1C7737
triadic
#2F771C #1C2F77 #771C2F
tetradic
#2F771C #1C5D77 #641C77 #77371C
square
#2F771C #1C5D77 #641C77 #77371C
split-complementary
#2F771C #371C77 #771C5D
monochromatic
#0A1906 #1B4510 #2F771C #43A928 #5BD13C
Accessibility & contrast
On white
5.56
#2F771C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.78
#2F771C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F771C
5.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F771C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F771C | 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)
#7A6C0B
Deuteranopia (green-blind)
#716625
Tritanopia (blue-blind)
#267365
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #2f771c; /* rgb */ color: rgb(47, 119, 28); /* oklch */ color: oklch(50.5% 0.143 140.0);
Tailwind
colors: {
custom: {
50: '#719f5f',
500: '#2f771c',
950: '#000000',
},
}SCSS
$custom: #2f771c; $custom-light: #719f5f; $custom-dark: #000000;
JSON
{
"hex": "#2f771c",
"rgb": {
"r": 47,
"g": 119,
"b": 28
},
"hsl": {
"h": 107.473,
"s": 61.905,
"l": 28.824
},
"oklch": {
"l": 0.50455,
"c": 0.14327,
"h": 140
},
"luminance": 0.13882
}Semantic roles & 50–950 ramp
primary
#2F771C
secondary
#9644AB
accent
#43E5C3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79