#2A771D#2A771D

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

Color values

HEX#2A771D
RGBrgb(42, 119, 29)
HSLhsl(111, 61%, 29%)
HSVhsv(111, 76%, 47%)
CMYKcmyk(64.7%, 0%, 75.6%, 53.3%)
CIE-LABlab(43.91, -41.19, 40.24)
CIE-LCHlch(43.91, 57.58, 135.67°)
OKLaboklab(50.28% -0.1126 0.0911)
OKLCHoklch(50.28% 0.145 141)
XYZxyz(7.7731, 13.7739, 3.4111)
Luminance0.1378 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A771D #6A1D77
analogous
#57771D #2A771D #1D773D
triadic
#2A771D #1D2A77 #771D2A
tetradic
#2A771D #1D5777 #6A1D77 #773D1D
square
#2A771D #1D5777 #6A1D77 #773D1D
split-complementary
#2A771D #3D1D77 #771D57
monochromatic
#091906 #194611 #2A771D #3BA829 #53D03E

Accessibility & contrast

On white

5.59
#2A771D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A771D
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A771D#FFFFFF#000000##FFFFFF
##2A771D1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C0D
Deuteranopia (green-blind)
#716526
Tritanopia (blue-blind)
#1E7365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2a771d;
/* rgb */ color: rgb(42, 119, 29);
/* oklch */ color: oklch(50.3% 0.145 141.0);
Tailwind
colors: {
  custom: {
    50: '#6e9f5f',
    500: '#2a771d',
    950: '#000000',
  },
}
SCSS
$custom: #2a771d;
$custom-light: #6e9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a771d",
  "rgb": {
    "r": 42,
    "g": 119,
    "b": 29
  },
  "hsl": {
    "h": 111.333,
    "s": 60.811,
    "l": 29.02
  },
  "oklch": {
    "l": 0.50283,
    "c": 0.14485,
    "h": 141
  },
  "luminance": 0.13775
}

Semantic roles & 50–950 ramp

primary
#2A771D
secondary
#9C45AB
accent
#44E4CD
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2A771D

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

Preview Lab → · Contrast checker → · Palette generator →

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