#2A771C#2A771C

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

Color values

HEX#2A771C
RGBrgb(42, 119, 28)
HSLhsl(111, 62%, 29%)
HSVhsv(111, 76%, 47%)
CMYKcmyk(64.7%, 0%, 76.5%, 53.3%)
CIE-LABlab(43.90, -41.27, 40.62)
CIE-LCHlch(43.90, 57.91, 135.45°)
OKLaboklab(50.28% -0.1129 0.0918)
OKLCHoklch(50.28% 0.145 140.9)
XYZxyz(7.7609, 13.7690, 3.3471)
Luminance0.1377 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A771C #691C77
analogous
#58771C #2A771C #1C773C
triadic
#2A771C #1C2A77 #771C2A
tetradic
#2A771C #1C5877 #691C77 #773C1C
square
#2A771C #1C5877 #691C77 #773C1C
split-complementary
#2A771C #3C1C77 #771C58
monochromatic
#091906 #194510 #2A771C #3BA928 #53D13C

Accessibility & contrast

On white

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

On black

3.75
#2A771C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A771C#FFFFFF#000000##FFFFFF
##2A771C1.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a771c;
/* rgb */ color: rgb(42, 119, 28);
/* oklch */ color: oklch(50.3% 0.145 140.9);
Tailwind
colors: {
  custom: {
    50: '#6e9f5f',
    500: '#2a771c',
    950: '#000000',
  },
}
SCSS
$custom: #2a771c;
$custom-light: #6e9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a771c",
  "rgb": {
    "r": 42,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 110.769,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50275,
    "c": 0.14548,
    "h": 140.9
  },
  "luminance": 0.1377
}

Semantic roles & 50–950 ramp

primary
#2A771C
secondary
#9B44AB
accent
#43E5CC
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2A771C

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

Preview Lab → · Contrast checker → · Palette generator →

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