#2C771F#2C771F

#2C771F is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.4% C 0.143 H 141.0°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#2C771F
RGBrgb(44, 119, 31)
HSLhsl(111, 59%, 29%)
HSVhsv(111, 74%, 47%)
CMYKcmyk(63%, 0%, 73.9%, 53.3%)
CIE-LABlab(43.98, -40.51, 39.53)
CIE-LCHlch(43.98, 56.60, 135.70°)
OKLaboklab(50.37% -0.1108 0.0899)
OKLCHoklch(50.37% 0.143 141)
XYZxyz(7.8825, 13.8273, 3.5496)
Luminance0.1383 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C771F #6A1F77
analogous
#58771F #2C771F #1F773E
triadic
#2C771F #1F2C77 #771F2C
tetradic
#2C771F #1F5877 #6A1F77 #773E1F
square
#2C771F #1F5877 #6A1F77 #773E1F
split-complementary
#2C771F #3E1F77 #771F58
monochromatic
#091806 #1A4612 #2C771F #3EA82C #57CE43

Accessibility & contrast

On white

5.58
#2C771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2C771F
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C771F#FFFFFF#000000##FFFFFF
##2C771F1.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c771f;
/* rgb */ color: rgb(44, 119, 31);
/* oklch */ color: oklch(50.4% 0.143 141.0);
Tailwind
colors: {
  custom: {
    50: '#6f9f60',
    500: '#2c771f',
    950: '#000000',
  },
}
SCSS
$custom: #2c771f;
$custom-light: #6f9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#2c771f",
  "rgb": {
    "r": 44,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 111.136,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.5037,
    "c": 0.14266,
    "h": 141
  },
  "luminance": 0.13828
}

Semantic roles & 50–950 ramp

primary
#2C771F
secondary
#9C47AB
accent
#46E2CB
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2C771F

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

Preview Lab → · Contrast checker → · Palette generator →

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