#2C771B#2C771B

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

Color values

HEX#2C771B
RGBrgb(44, 119, 27)
HSLhsl(109, 63%, 29%)
HSVhsv(109, 77%, 47%)
CMYKcmyk(63%, 0%, 77.3%, 53.3%)
CIE-LABlab(43.96, -40.84, 41.08)
CIE-LCHlch(43.96, 57.93, 134.83°)
OKLaboklab(50.34% -0.1119 0.0925)
OKLCHoklch(50.34% 0.145 140.4)
XYZxyz(7.8330, 13.8075, 3.2890)
Luminance0.1381 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C771B #661B77
analogous
#5A771B #2C771B #1B7738
triadic
#2C771B #1B2C77 #771B2C
tetradic
#2C771B #1B5A77 #661B77 #77381B
square
#2C771B #1B5A77 #661B77 #77381B
split-complementary
#2C771B #381B77 #771B5A
monochromatic
#091906 #1A4510 #2C771B #3EA926 #56D23A

Accessibility & contrast

On white

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

On black

3.76
#2C771B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2C771B#FFFFFF#000000##FFFFFF
##2C771B1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C08
Deuteranopia (green-blind)
#716625
Tritanopia (blue-blind)
#217365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2c771b;
/* rgb */ color: rgb(44, 119, 27);
/* oklch */ color: oklch(50.3% 0.145 140.4);
Tailwind
colors: {
  custom: {
    50: '#6f9f5e',
    500: '#2c771b',
    950: '#000000',
  },
}
SCSS
$custom: #2c771b;
$custom-light: #6f9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c771b",
  "rgb": {
    "r": 44,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 108.913,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50337,
    "c": 0.14524,
    "h": 140.4
  },
  "luminance": 0.13808
}

Semantic roles & 50–950 ramp

primary
#2C771B
secondary
#9842AB
accent
#42E6C8
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2C771B

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

Preview Lab → · Contrast checker → · Palette generator →

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