#2F771C#2F771C

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

Color values

HEX#2F771C
RGBrgb(47, 119, 28)
HSLhsl(107, 62%, 29%)
HSVhsv(107, 76%, 47%)
CMYKcmyk(60.5%, 0%, 76.5%, 53.3%)
CIE-LABlab(44.06, -39.96, 40.84)
CIE-LCHlch(44.06, 57.14, 134.38°)
OKLaboklab(50.46% -0.1097 0.0922)
OKLCHoklch(50.46% 0.143 140)
XYZxyz(7.9784, 13.8811, 3.3573)
Luminance0.1388 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F771C #641C77
analogous
#5D771C #2F771C #1C7737
triadic
#2F771C #1C2F77 #771C2F
tetradic
#2F771C #1C5D77 #641C77 #77371C
square
#2F771C #1C5D77 #641C77 #77371C
split-complementary
#2F771C #371C77 #771C5D
monochromatic
#0A1906 #1B4510 #2F771C #43A928 #5BD13C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F771C#FFFFFF#000000##FFFFFF
##2F771C1.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)
#7A6C0B
Deuteranopia (green-blind)
#716625
Tritanopia (blue-blind)
#267365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2f771c;
/* rgb */ color: rgb(47, 119, 28);
/* oklch */ color: oklch(50.5% 0.143 140.0);
Tailwind
colors: {
  custom: {
    50: '#719f5f',
    500: '#2f771c',
    950: '#000000',
  },
}
SCSS
$custom: #2f771c;
$custom-light: #719f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f771c",
  "rgb": {
    "r": 47,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 107.473,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50455,
    "c": 0.14327,
    "h": 140
  },
  "luminance": 0.13882
}

Semantic roles & 50–950 ramp

primary
#2F771C
secondary
#9644AB
accent
#43E5C3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2F771C

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

Preview Lab → · Contrast checker → · Palette generator →

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