#2B771C#2B771C

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

Color values

HEX#2B771C
RGBrgb(43, 119, 28)
HSLhsl(110, 62%, 29%)
HSVhsv(110, 76%, 47%)
CMYKcmyk(63.9%, 0%, 76.5%, 53.3%)
CIE-LABlab(43.93, -41.02, 40.67)
CIE-LCHlch(43.93, 57.76, 135.25°)
OKLaboklab(50.31% -0.1123 0.0918)
OKLCHoklch(50.31% 0.145 140.7)
XYZxyz(7.8023, 13.7903, 3.3490)
Luminance0.1379 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B771C #681C77
analogous
#59771C #2B771C #1C773B
triadic
#2B771C #1C2B77 #771C2B
tetradic
#2B771C #1C5977 #681C77 #773B1C
square
#2B771C #1C5977 #681C77 #773B1C
split-complementary
#2B771C #3B1C77 #771C59
monochromatic
#091906 #194510 #2B771C #3DA928 #55D13C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #2b771c;
/* rgb */ color: rgb(43, 119, 28);
/* oklch */ color: oklch(50.3% 0.145 140.7);
Tailwind
colors: {
  custom: {
    50: '#6f9f5f',
    500: '#2b771c',
    950: '#000000',
  },
}
SCSS
$custom: #2b771c;
$custom-light: #6f9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b771c",
  "rgb": {
    "r": 43,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 110.11,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.5031,
    "c": 0.14506,
    "h": 140.7
  },
  "luminance": 0.13791
}

Semantic roles & 50–950 ramp

primary
#2B771C
secondary
#9A44AB
accent
#43E5CA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2B771C

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

Preview Lab → · Contrast checker → · Palette generator →

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