#2D771C#2D771C

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

Color values

HEX#2D771C
RGBrgb(45, 119, 28)
HSLhsl(109, 62%, 29%)
HSVhsv(109, 76%, 47%)
CMYKcmyk(62.2%, 0%, 76.5%, 53.3%)
CIE-LABlab(43.99, -40.50, 40.75)
CIE-LCHlch(43.99, 57.45, 134.82°)
OKLaboklab(50.38% -0.111 0.092)
OKLCHoklch(50.38% 0.144 140.4)
XYZxyz(7.8882, 13.8347, 3.3530)
Luminance0.1384 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D771C #661C77
analogous
#5B771C #2D771C #1C7739
triadic
#2D771C #1C2D77 #771C2D
tetradic
#2D771C #1C5B77 #661C77 #77391C
square
#2D771C #1C5B77 #661C77 #77391C
split-complementary
#2D771C #391C77 #771C5B
monochromatic
#091906 #1A4510 #2D771C #40A928 #58D13C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D771C#FFFFFF#000000##FFFFFF
##2D771C1.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)
#7A6C0B
Deuteranopia (green-blind)
#716625
Tritanopia (blue-blind)
#237365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2d771c;
/* rgb */ color: rgb(45, 119, 28);
/* oklch */ color: oklch(50.4% 0.144 140.4);
Tailwind
colors: {
  custom: {
    50: '#709f5f',
    500: '#2d771c',
    950: '#000000',
  },
}
SCSS
$custom: #2d771c;
$custom-light: #709f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d771c",
  "rgb": {
    "r": 45,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 108.791,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50381,
    "c": 0.14418,
    "h": 140.4
  },
  "luminance": 0.13835
}

Semantic roles & 50–950 ramp

primary
#2D771C
secondary
#9844AB
accent
#43E5C7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2D771C

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

Preview Lab → · Contrast checker → · Palette generator →

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