#2F771F#2F771F

#2F771F is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.5% C 0.141 H 140.4°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#2F771F
RGBrgb(47, 119, 31)
HSLhsl(109, 59%, 29%)
HSVhsv(109, 74%, 47%)
CMYKcmyk(60.5%, 0%, 73.9%, 53.3%)
CIE-LABlab(44.08, -39.71, 39.66)
CIE-LCHlch(44.08, 56.13, 135.03°)
OKLaboklab(50.48% -0.1088 0.0901)
OKLCHoklch(50.48% 0.141 140.4)
XYZxyz(8.0161, 13.8962, 3.5559)
Luminance0.1390 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F771F #671F77
analogous
#5B771F #2F771F #1F773B
triadic
#2F771F #1F2F77 #771F2F
tetradic
#2F771F #1F5B77 #671F77 #773B1F
square
#2F771F #1F5B77 #671F77 #773B1F
split-complementary
#2F771F #3B1F77 #771F5B
monochromatic
#0A1806 #1C4612 #2F771F #42A82C #5CCE43

Accessibility & contrast

On white

5.56
#2F771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#2F771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F771F
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F771F#FFFFFF#000000##FFFFFF
##2F771F1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C11
Deuteranopia (green-blind)
#716628
Tritanopia (blue-blind)
#267366
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2f771f;
/* rgb */ color: rgb(47, 119, 31);
/* oklch */ color: oklch(50.5% 0.141 140.4);
Tailwind
colors: {
  custom: {
    50: '#719f60',
    500: '#2f771f',
    950: '#000000',
  },
}
SCSS
$custom: #2f771f;
$custom-light: #719f60;
$custom-dark: #000000;
JSON
{
  "hex": "#2f771f",
  "rgb": {
    "r": 47,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 109.091,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.5048,
    "c": 0.14131,
    "h": 140.4
  },
  "luminance": 0.13897
}

Semantic roles & 50–950 ramp

primary
#2F771F
secondary
#9847AB
accent
#46E2C6
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2F771F

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

Preview Lab → · Contrast checker → · Palette generator →

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