#2F771B#2F771B
#2F771B is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.4% C 0.144 H 139.8°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2F771B |
|---|---|
| RGB | rgb(47, 119, 27) |
| HSL | hsl(107, 63%, 29%) |
| HSV | hsv(107, 77%, 47%) |
| CMYK | cmyk(60.5%, 0%, 77.3%, 53.3%) |
| CIE-LAB | lab(44.06, -40.04, 41.22) |
| CIE-LCH | lch(44.06, 57.46, 134.17°) |
| OKLab | oklab(50.45% -0.11 0.0928) |
| OKLCH | oklch(50.45% 0.144 139.8) |
| XYZ | xyz(7.9666, 13.8764, 3.2953) |
| Luminance | 0.1388 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.53
Green
#008000
ΔE00 4.31
Dark Grass Green
#388004
ΔE00 4.38
Darkish Green
#287C37
ΔE00 4.85
Darkgreen
#006400
ΔE00 7.02
Forestgreen (CSS)
#228B22
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F771B #631B77
analogous
#5D771B #2F771B #1B7735
triadic
#2F771B #1B2F77 #771B2F
tetradic
#2F771B #1B5D77 #631B77 #77351B
square
#2F771B #1B5D77 #631B77 #77351B
split-complementary
#2F771B #351B77 #771B5D
monochromatic
#0A1906 #1B4510 #2F771B #43A926 #5BD23A
Accessibility & contrast
On white
5.56
#2F771B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.78
#2F771B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F771B
5.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F771B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F771B | 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)
#7A6C08
Deuteranopia (green-blind)
#726625
Tritanopia (blue-blind)
#267365
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #2f771b; /* rgb */ color: rgb(47, 119, 27); /* oklch */ color: oklch(50.4% 0.144 139.8);
Tailwind
colors: {
custom: {
50: '#719f5e',
500: '#2f771b',
950: '#000000',
},
}SCSS
$custom: #2f771b; $custom-light: #719f5e; $custom-dark: #000000;
JSON
{
"hex": "#2f771b",
"rgb": {
"r": 47,
"g": 119,
"b": 27
},
"hsl": {
"h": 106.957,
"s": 63.014,
"l": 28.627
},
"oklch": {
"l": 0.50447,
"c": 0.14389,
"h": 139.8
},
"luminance": 0.13877
}Semantic roles & 50–950 ramp
primary
#2F771B
secondary
#9542AB
accent
#42E6C2
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79