#2A771E#2A771E

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

Color values

HEX#2A771E
RGBrgb(42, 119, 30)
HSLhsl(112, 60%, 29%)
HSVhsv(112, 75%, 47%)
CMYKcmyk(64.7%, 0%, 74.8%, 53.3%)
CIE-LABlab(43.91, -41.10, 39.85)
CIE-LCHlch(43.91, 57.25, 135.89°)
OKLaboklab(50.29% -0.1123 0.0904)
OKLCHoklch(50.29% 0.144 141.2)
XYZxyz(7.7856, 13.7789, 3.4773)
Luminance0.1378 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A771E #6B1E77
analogous
#57771E #2A771E #1E773F
triadic
#2A771E #1E2A77 #771E2A
tetradic
#2A771E #1E5777 #6B1E77 #773F1E
square
#2A771E #1E5777 #6B1E77 #773F1E
split-complementary
#2A771E #3F1E77 #771E57
monochromatic
#091806 #194612 #2A771E #3BA82A #54CF40

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A771E#FFFFFF#000000##FFFFFF
##2A771E1.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)
#7A6C0F
Deuteranopia (green-blind)
#716527
Tritanopia (blue-blind)
#1D7366
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2a771e;
/* rgb */ color: rgb(42, 119, 30);
/* oklch */ color: oklch(50.3% 0.144 141.2);
Tailwind
colors: {
  custom: {
    50: '#6e9f60',
    500: '#2a771e',
    950: '#000000',
  },
}
SCSS
$custom: #2a771e;
$custom-light: #6e9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#2a771e",
  "rgb": {
    "r": 42,
    "g": 119,
    "b": 30
  },
  "hsl": {
    "h": 111.91,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50292,
    "c": 0.14419,
    "h": 141.2
  },
  "luminance": 0.1378
}

Semantic roles & 50–950 ramp

primary
#2A771E
secondary
#9D46AB
accent
#45E3CE
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2A771E

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

Preview Lab → · Contrast checker → · Palette generator →

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