#2F871D#2F871D

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

Color values

HEX#2F871D
RGBrgb(47, 135, 29)
HSLhsl(110, 65%, 32%)
HSVhsv(110, 79%, 53%)
CMYKcmyk(65.2%, 0%, 78.5%, 47.1%)
CIE-LABlab(49.52, -45.92, 45.87)
CIE-LCHlch(49.52, 64.91, 135.03°)
OKLaboklab(54.97% -0.1257 0.1028)
OKLCHoklch(54.97% 0.162 140.7)
XYZxyz(10.0575, 18.0200, 4.1103)
Luminance0.1802 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F871D #751D87
analogous
#64871D #2F871D #1D8740
triadic
#2F871D #1D2F87 #871D2F
tetradic
#2F871D #1D6487 #751D87 #87401D
square
#2F871D #1D6487 #751D87 #87401D
split-complementary
#2F871D #401D87 #871D64
monochromatic
#0C2207 #1D5512 #2F871D #41B928 #5FD747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F871D#FFFFFF#000000##000000
##2F871D1.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)
#8B7A04
Deuteranopia (green-blind)
#807329
Tritanopia (blue-blind)
#218373
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2f871d;
/* rgb */ color: rgb(47, 135, 29);
/* oklch */ color: oklch(55.0% 0.162 140.7);
Tailwind
colors: {
  custom: {
    50: '#74ab61',
    500: '#2f871d',
    950: '#000000',
  },
}
SCSS
$custom: #2f871d;
$custom-light: #74ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#2f871d",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 109.811,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54971,
    "c": 0.16239,
    "h": 140.7
  },
  "luminance": 0.18021
}

Semantic roles & 50–950 ramp

primary
#2F871D
secondary
#A646B9
accent
#40E8CB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2F871D

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

Preview Lab → · Contrast checker → · Palette generator →

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