#2A771A#2A771A

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

Color values

HEX#2A771A
RGBrgb(42, 119, 26)
HSLhsl(110, 64%, 28%)
HSVhsv(110, 78%, 47%)
CMYKcmyk(64.7%, 0%, 78.2%, 53.3%)
CIE-LABlab(43.89, -41.43, 41.37)
CIE-LCHlch(43.89, 58.55, 135.04°)
OKLaboklab(50.26% -0.1134 0.093)
OKLCHoklch(50.26% 0.147 140.7)
XYZxyz(7.7377, 13.7597, 3.2252)
Luminance0.1376 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A771A #671A77
analogous
#58771A #2A771A #1A7738
triadic
#2A771A #1A2A77 #771A2A
tetradic
#2A771A #1A5877 #671A77 #77381A
square
#2A771A #1A5877 #671A77 #77381A
split-complementary
#2A771A #381A77 #771A58
monochromatic
#091905 #18450F #2A771A #3CA925 #53D338

Accessibility & contrast

On white

5.60
#2A771A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A771A
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A771A#FFFFFF#000000##FFFFFF
##2A771A1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a771a;
/* rgb */ color: rgb(42, 119, 26);
/* oklch */ color: oklch(50.3% 0.147 140.7);
Tailwind
colors: {
  custom: {
    50: '#6e9f5e',
    500: '#2a771a',
    950: '#000000',
  },
}
SCSS
$custom: #2a771a;
$custom-light: #6e9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a771a",
  "rgb": {
    "r": 42,
    "g": 119,
    "b": 26
  },
  "hsl": {
    "h": 109.677,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5026,
    "c": 0.14671,
    "h": 140.7
  },
  "luminance": 0.1376
}

Semantic roles & 50–950 ramp

primary
#2A771A
secondary
#9941AC
accent
#41E7CA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2A771A

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

Preview Lab → · Contrast checker → · Palette generator →

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