#2F871F#2F871F

#2F871F is a mid, vivid green. Relative luminance 0.180; OKLCH L 55.0% C 0.161 H 140.9°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#2F871F
RGBrgb(47, 135, 31)
HSLhsl(111, 63%, 33%)
HSVhsv(111, 77%, 53%)
CMYKcmyk(65.2%, 0%, 77%, 47.1%)
CIE-LABlab(49.53, -45.77, 45.17)
CIE-LCHlch(49.53, 64.31, 135.38°)
OKLaboklab(54.98% -0.1252 0.1016)
OKLCHoklch(54.98% 0.161 140.9)
XYZxyz(10.0831, 18.0302, 4.2449)
Luminance0.1803 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F871F #771F87
analogous
#63871F #2F871F #1F8743
triadic
#2F871F #1F2F87 #871F2F
tetradic
#2F871F #1F6387 #771F87 #87431F
square
#2F871F #1F6387 #771F87 #87431F
split-complementary
#2F871F #431F87 #871F63
monochromatic
#0C2308 #1E5514 #2F871F #40B92A #60D64B

Accessibility & contrast

On white

4.56
#2F871F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#2F871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F871F
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F871F#FFFFFF#000000##000000
##2F871F1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A09
Deuteranopia (green-blind)
#80732A
Tritanopia (blue-blind)
#208373
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2f871f;
/* rgb */ color: rgb(47, 135, 31);
/* oklch */ color: oklch(55.0% 0.161 140.9);
Tailwind
colors: {
  custom: {
    50: '#74ab62',
    500: '#2f871f',
    950: '#000000',
  },
}
SCSS
$custom: #2f871f;
$custom-light: #74ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#2f871f",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 110.769,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54985,
    "c": 0.16126,
    "h": 140.9
  },
  "luminance": 0.18031
}

Semantic roles & 50–950 ramp

primary
#2F871F
secondary
#A74AB8
accent
#42E6CD
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2F871F

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

Preview Lab → · Contrast checker → · Palette generator →

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