#2F871E#2F871E

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

Color values

HEX#2F871E
RGBrgb(47, 135, 30)
HSLhsl(110, 64%, 32%)
HSVhsv(110, 78%, 53%)
CMYKcmyk(65.2%, 0%, 77.8%, 47.1%)
CIE-LABlab(49.53, -45.85, 45.53)
CIE-LCHlch(49.53, 64.61, 135.20°)
OKLaboklab(54.98% -0.1255 0.1022)
OKLCHoklch(54.98% 0.162 140.8)
XYZxyz(10.0701, 18.0250, 4.1765)
Luminance0.1803 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F871E #761E87
analogous
#63871E #2F871E #1E8742
triadic
#2F871E #1E2F87 #871E2F
tetradic
#2F871E #1E6387 #761E87 #87421E
square
#2F871E #1E6387 #761E87 #87421E
split-complementary
#2F871E #421E87 #871E63
monochromatic
#0C2308 #1E5513 #2F871E #40B929 #60D749

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F871E#FFFFFF#000000##000000
##2F871E1.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)
#8B7A06
Deuteranopia (green-blind)
#807329
Tritanopia (blue-blind)
#208373
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2f871e;
/* rgb */ color: rgb(47, 135, 30);
/* oklch */ color: oklch(55.0% 0.162 140.8);
Tailwind
colors: {
  custom: {
    50: '#74ab62',
    500: '#2f871e',
    950: '#000000',
  },
}
SCSS
$custom: #2f871e;
$custom-light: #74ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#2f871e",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 110.286,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54978,
    "c": 0.16183,
    "h": 140.8
  },
  "luminance": 0.18026
}

Semantic roles & 50–950 ramp

primary
#2F871E
secondary
#A748B9
accent
#41E7CC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2F871E

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

Preview Lab → · Contrast checker → · Palette generator →

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