#2F871A#2F871A

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

Color values

HEX#2F871A
RGBrgb(47, 135, 26)
HSLhsl(108, 68%, 32%)
HSVhsv(108, 81%, 53%)
CMYKcmyk(65.2%, 0%, 80.7%, 47.1%)
CIE-LABlab(49.50, -46.12, 46.87)
CIE-LCHlch(49.50, 65.76, 134.54°)
OKLaboklab(54.95% -0.1264 0.1045)
OKLCHoklch(54.95% 0.164 140.4)
XYZxyz(10.0222, 18.0059, 3.9244)
Luminance0.1801 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F871A #721A87
analogous
#66871A #2F871A #1A873B
triadic
#2F871A #1A2F87 #871A2F
tetradic
#2F871A #1A6687 #721A87 #873B1A
square
#2F871A #1A6687 #721A87 #873B1A
split-complementary
#2F871A #3B1A87 #871A66
monochromatic
#0B2006 #1D5410 #2F871A #41BA24 #5FDA41

Accessibility & contrast

On white

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

On black

4.60
#2F871A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F871A
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F871A#FFFFFF#000000##000000
##2F871A1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#807327
Tritanopia (blue-blind)
#218273
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2f871a;
/* rgb */ color: rgb(47, 135, 26);
/* oklch */ color: oklch(55.0% 0.164 140.4);
Tailwind
colors: {
  custom: {
    50: '#74ab60',
    500: '#2f871a',
    950: '#000000',
  },
}
SCSS
$custom: #2f871a;
$custom-light: #74ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#2f871a",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 108.44,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54951,
    "c": 0.16399,
    "h": 140.4
  },
  "luminance": 0.18007
}

Semantic roles & 50–950 ramp

primary
#2F871A
secondary
#A342BA
accent
#3DEBC9
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2F871A

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

Preview Lab → · Contrast checker → · Palette generator →

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