#2B771B#2B771B

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

Color values

HEX#2B771B
RGBrgb(43, 119, 27)
HSLhsl(110, 63%, 29%)
HSVhsv(110, 77%, 47%)
CMYKcmyk(63.9%, 0%, 77.3%, 53.3%)
CIE-LABlab(43.92, -41.10, 41.04)
CIE-LCHlch(43.92, 58.08, 135.04°)
OKLaboklab(50.3% -0.1126 0.0925)
OKLCHoklch(50.3% 0.146 140.6)
XYZxyz(7.7905, 13.7856, 3.2870)
Luminance0.1379 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B771B #671B77
analogous
#59771B #2B771B #1B7739
triadic
#2B771B #1B2B77 #771B2B
tetradic
#2B771B #1B5977 #671B77 #77391B
square
#2B771B #1B5977 #671B77 #77391B
split-complementary
#2B771B #391B77 #771B59
monochromatic
#091906 #194510 #2B771B #3DA926 #55D23A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #2b771b;
/* rgb */ color: rgb(43, 119, 27);
/* oklch */ color: oklch(50.3% 0.146 140.6);
Tailwind
colors: {
  custom: {
    50: '#6f9f5e',
    500: '#2b771b',
    950: '#000000',
  },
}
SCSS
$custom: #2b771b;
$custom-light: #6f9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b771b",
  "rgb": {
    "r": 43,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 109.565,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50302,
    "c": 0.14567,
    "h": 140.6
  },
  "luminance": 0.13786
}

Semantic roles & 50–950 ramp

primary
#2B771B
secondary
#9942AB
accent
#42E6C9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2B771B

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

Preview Lab → · Contrast checker → · Palette generator →

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