#2B771F#2B771F

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

Color values

HEX#2B771F
RGBrgb(43, 119, 31)
HSLhsl(112, 59%, 29%)
HSVhsv(112, 74%, 47%)
CMYKcmyk(63.9%, 0%, 73.9%, 53.3%)
CIE-LABlab(43.95, -40.76, 39.49)
CIE-LCHlch(43.95, 56.75, 135.91°)
OKLaboklab(50.33% -0.1114 0.0898)
OKLCHoklch(50.33% 0.143 141.1)
XYZxyz(7.8400, 13.8054, 3.5476)
Luminance0.1381 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B771F #6B1F77
analogous
#57771F #2B771F #1F773F
triadic
#2B771F #1F2B77 #771F2B
tetradic
#2B771F #1F5777 #6B1F77 #773F1F
square
#2B771F #1F5777 #6B1F77 #773F1F
split-complementary
#2B771F #3F1F77 #771F57
monochromatic
#091806 #194612 #2B771F #3DA82C #56CE43

Accessibility & contrast

On white

5.58
#2B771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2B771F
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B771F#FFFFFF#000000##FFFFFF
##2B771F1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C11
Deuteranopia (green-blind)
#716528
Tritanopia (blue-blind)
#1F7366
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2b771f;
/* rgb */ color: rgb(43, 119, 31);
/* oklch */ color: oklch(50.3% 0.143 141.1);
Tailwind
colors: {
  custom: {
    50: '#6f9f60',
    500: '#2b771f',
    950: '#000000',
  },
}
SCSS
$custom: #2b771f;
$custom-light: #6f9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#2b771f",
  "rgb": {
    "r": 43,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 111.818,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.50335,
    "c": 0.1431,
    "h": 141.1
  },
  "luminance": 0.13806
}

Semantic roles & 50–950 ramp

primary
#2B771F
secondary
#9D47AB
accent
#46E2CD
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2B771F

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

Preview Lab → · Contrast checker → · Palette generator →

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