#2D771A#2D771A

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

Color values

HEX#2D771A
RGBrgb(45, 119, 26)
HSLhsl(108, 64%, 28%)
HSVhsv(108, 78%, 47%)
CMYKcmyk(62.2%, 0%, 78.2%, 53.3%)
CIE-LABlab(43.98, -40.66, 41.50)
CIE-LCHlch(43.98, 58.09, 134.41°)
OKLaboklab(50.37% -0.1116 0.0933)
OKLCHoklch(50.37% 0.145 140.1)
XYZxyz(7.8651, 13.8254, 3.2312)
Luminance0.1383 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D771A #641A77
analogous
#5B771A #2D771A #1A7735
triadic
#2D771A #1A2D77 #771A2D
tetradic
#2D771A #1A5B77 #641A77 #77351A
square
#2D771A #1A5B77 #641A77 #77351A
split-complementary
#2D771A #351A77 #771A5B
monochromatic
#091905 #1A450F #2D771A #40A925 #58D338

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D771A#FFFFFF#000000##FFFFFF
##2D771A1.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)
#7A6C06
Deuteranopia (green-blind)
#716624
Tritanopia (blue-blind)
#237365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2d771a;
/* rgb */ color: rgb(45, 119, 26);
/* oklch */ color: oklch(50.4% 0.145 140.1);
Tailwind
colors: {
  custom: {
    50: '#709f5e',
    500: '#2d771a',
    950: '#000000',
  },
}
SCSS
$custom: #2d771a;
$custom-light: #709f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d771a",
  "rgb": {
    "r": 45,
    "g": 119,
    "b": 26
  },
  "hsl": {
    "h": 107.742,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.50365,
    "c": 0.1454,
    "h": 140.1
  },
  "luminance": 0.13826
}

Semantic roles & 50–950 ramp

primary
#2D771A
secondary
#9641AC
accent
#41E7C5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2D771A

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

Preview Lab → · Contrast checker → · Palette generator →

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