#2D771F#2D771F

#2D771F is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.4% C 0.142 H 140.8°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#2D771F
RGBrgb(45, 119, 31)
HSLhsl(110, 59%, 29%)
HSVhsv(110, 74%, 47%)
CMYKcmyk(62.2%, 0%, 73.9%, 53.3%)
CIE-LABlab(44.02, -40.25, 39.57)
CIE-LCHlch(44.02, 56.44, 135.48°)
OKLaboklab(50.41% -0.1101 0.09)
OKLCHoklch(50.41% 0.142 140.8)
XYZxyz(7.9260, 13.8497, 3.5516)
Luminance0.1385 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D771F #691F77
analogous
#59771F #2D771F #1F773D
triadic
#2D771F #1F2D77 #771F2D
tetradic
#2D771F #1F5977 #691F77 #773D1F
square
#2D771F #1F5977 #691F77 #773D1F
split-complementary
#2D771F #3D1F77 #771F59
monochromatic
#091806 #1B4612 #2D771F #3FA82C #59CE43

Accessibility & contrast

On white

5.57
#2D771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#2D771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D771F
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D771F#FFFFFF#000000##FFFFFF
##2D771F1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C11
Deuteranopia (green-blind)
#716628
Tritanopia (blue-blind)
#227366
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2d771f;
/* rgb */ color: rgb(45, 119, 31);
/* oklch */ color: oklch(50.4% 0.142 140.8);
Tailwind
colors: {
  custom: {
    50: '#709f60',
    500: '#2d771f',
    950: '#000000',
  },
}
SCSS
$custom: #2d771f;
$custom-light: #709f60;
$custom-dark: #000000;
JSON
{
  "hex": "#2d771f",
  "rgb": {
    "r": 45,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 110.455,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.50406,
    "c": 0.14222,
    "h": 140.8
  },
  "luminance": 0.1385
}

Semantic roles & 50–950 ramp

primary
#2D771F
secondary
#9B47AB
accent
#46E2C9
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2D771F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2D771F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva