#2B771A#2B771A

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

Color values

HEX#2B771A
RGBrgb(43, 119, 26)
HSLhsl(109, 64%, 28%)
HSVhsv(109, 78%, 47%)
CMYKcmyk(63.9%, 0%, 78.2%, 53.3%)
CIE-LABlab(43.92, -41.18, 41.41)
CIE-LCHlch(43.92, 58.40, 134.84°)
OKLaboklab(50.29% -0.1128 0.0931)
OKLCHoklch(50.29% 0.146 140.5)
XYZxyz(7.7792, 13.7811, 3.2271)
Luminance0.1378 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B771A #661A77
analogous
#59771A #2B771A #1A7737
triadic
#2B771A #1A2B77 #771A2B
tetradic
#2B771A #1A5977 #661A77 #77371A
square
#2B771A #1A5977 #661A77 #77371A
split-complementary
#2B771A #371A77 #771A59
monochromatic
#091905 #19450F #2B771A #3DA925 #54D338

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B771A#FFFFFF#000000##FFFFFF
##2B771A1.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)
#7A6C06
Deuteranopia (green-blind)
#716524
Tritanopia (blue-blind)
#207365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2b771a;
/* rgb */ color: rgb(43, 119, 26);
/* oklch */ color: oklch(50.3% 0.146 140.5);
Tailwind
colors: {
  custom: {
    50: '#6f9f5e',
    500: '#2b771a',
    950: '#000000',
  },
}
SCSS
$custom: #2b771a;
$custom-light: #6f9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b771a",
  "rgb": {
    "r": 43,
    "g": 119,
    "b": 26
  },
  "hsl": {
    "h": 109.032,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.50294,
    "c": 0.14627,
    "h": 140.5
  },
  "luminance": 0.13782
}

Semantic roles & 50–950 ramp

primary
#2B771A
secondary
#9841AC
accent
#41E7C9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2B771A

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

Preview Lab → · Contrast checker → · Palette generator →

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