#2A771F#2A771F

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

Color values

HEX#2A771F
RGBrgb(42, 119, 31)
HSLhsl(113, 59%, 29%)
HSVhsv(113, 74%, 47%)
CMYKcmyk(64.7%, 0%, 73.9%, 53.3%)
CIE-LABlab(43.92, -41.02, 39.45)
CIE-LCHlch(43.92, 56.91, 136.12°)
OKLaboklab(50.3% -0.112 0.0897)
OKLCHoklch(50.3% 0.144 141.3)
XYZxyz(7.7986, 13.7841, 3.5457)
Luminance0.1379 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A771F #6C1F77
analogous
#56771F #2A771F #1F7740
triadic
#2A771F #1F2A77 #771F2A
tetradic
#2A771F #1F5677 #6C1F77 #77401F
square
#2A771F #1F5677 #6C1F77 #77401F
split-complementary
#2A771F #401F77 #771F56
monochromatic
#091806 #194612 #2A771F #3BA82C #54CE43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A771F#FFFFFF#000000##FFFFFF
##2A771F1.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)
#7A6C11
Deuteranopia (green-blind)
#716528
Tritanopia (blue-blind)
#1D7366
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2a771f;
/* rgb */ color: rgb(42, 119, 31);
/* oklch */ color: oklch(50.3% 0.144 141.3);
Tailwind
colors: {
  custom: {
    50: '#6e9f60',
    500: '#2a771f',
    950: '#000000',
  },
}
SCSS
$custom: #2a771f;
$custom-light: #6e9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#2a771f",
  "rgb": {
    "r": 42,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 112.5,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.503,
    "c": 0.14353,
    "h": 141.3
  },
  "luminance": 0.13785
}

Semantic roles & 50–950 ramp

primary
#2A771F
secondary
#9E47AB
accent
#46E2CE
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2A771F

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

Preview Lab → · Contrast checker → · Palette generator →

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