#2A771B#2A771B

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

Color values

HEX#2A771B
RGBrgb(42, 119, 27)
HSLhsl(110, 63%, 29%)
HSVhsv(110, 77%, 47%)
CMYKcmyk(64.7%, 0%, 77.3%, 53.3%)
CIE-LABlab(43.89, -41.35, 41.00)
CIE-LCHlch(43.89, 58.23, 135.24°)
OKLaboklab(50.27% -0.1132 0.0924)
OKLCHoklch(50.27% 0.146 140.8)
XYZxyz(7.7491, 13.7643, 3.2851)
Luminance0.1376 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A771B #681B77
analogous
#58771B #2A771B #1B773A
triadic
#2A771B #1B2A77 #771B2A
tetradic
#2A771B #1B5877 #681B77 #773A1B
square
#2A771B #1B5877 #681B77 #773A1B
split-complementary
#2A771B #3A1B77 #771B58
monochromatic
#091906 #184510 #2A771B #3CA926 #53D23A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A771B#FFFFFF#000000##FFFFFF
##2A771B1.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)
#7A6C08
Deuteranopia (green-blind)
#716525
Tritanopia (blue-blind)
#1E7365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2a771b;
/* rgb */ color: rgb(42, 119, 27);
/* oklch */ color: oklch(50.3% 0.146 140.8);
Tailwind
colors: {
  custom: {
    50: '#6e9f5e',
    500: '#2a771b',
    950: '#000000',
  },
}
SCSS
$custom: #2a771b;
$custom-light: #6e9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a771b",
  "rgb": {
    "r": 42,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 110.217,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50267,
    "c": 0.1461,
    "h": 140.8
  },
  "luminance": 0.13765
}

Semantic roles & 50–950 ramp

primary
#2A771B
secondary
#9A42AB
accent
#42E6CB
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2A771B

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

Preview Lab → · Contrast checker → · Palette generator →

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