#2B771F#2B771F
#2B771F is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.3% C 0.143 H 141.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).
Color values
| HEX | #2B771F |
|---|---|
| RGB | rgb(43, 119, 31) |
| HSL | hsl(112, 59%, 29%) |
| HSV | hsv(112, 74%, 47%) |
| CMYK | cmyk(63.9%, 0%, 73.9%, 53.3%) |
| CIE-LAB | lab(43.95, -40.76, 39.49) |
| CIE-LCH | lch(43.95, 56.75, 135.91°) |
| OKLab | oklab(50.33% -0.1114 0.0898) |
| OKLCH | oklch(50.33% 0.143 141.1) |
| XYZ | xyz(7.8400, 13.8054, 3.5476) |
| Luminance | 0.1381 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.72
Darkish Green
#287C37
ΔE00 4.16
Green
#008000
ΔE00 4.44
Dark Grass Green
#388004
ΔE00 4.98
Darkgreen
#006400
ΔE00 6.89
Forestgreen (CSS)
#228B22
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B771F #6B1F77
analogous
#57771F #2B771F #1F773F
triadic
#2B771F #1F2B77 #771F2B
tetradic
#2B771F #1F5777 #6B1F77 #773F1F
square
#2B771F #1F5777 #6B1F77 #773F1F
split-complementary
#2B771F #3F1F77 #771F57
monochromatic
#091806 #194612 #2B771F #3DA82C #56CE43
Accessibility & contrast
On white
5.58
#2B771F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.76
#2B771F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2B771F
5.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B771F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B771F | 1.00 | 5.58 | 3.76 | 5.58 |
| #FFFFFF | 5.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.76 | 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)
#716528
Tritanopia (blue-blind)
#1F7366
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #2b771f; /* rgb */ color: rgb(43, 119, 31); /* oklch */ color: oklch(50.3% 0.143 141.1);
Tailwind
colors: {
custom: {
50: '#6f9f60',
500: '#2b771f',
950: '#000000',
},
}SCSS
$custom: #2b771f; $custom-light: #6f9f60; $custom-dark: #000000;
JSON
{
"hex": "#2b771f",
"rgb": {
"r": 43,
"g": 119,
"b": 31
},
"hsl": {
"h": 111.818,
"s": 58.667,
"l": 29.412
},
"oklch": {
"l": 0.50335,
"c": 0.1431,
"h": 141.1
},
"luminance": 0.13806
}Semantic roles & 50–950 ramp
primary
#2B771F
secondary
#9D47AB
accent
#46E2CD
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79