#2F971F#2F971F

#2F971F is a mid, vivid green. Relative luminance 0.228; OKLCH L 59.4% C 0.180 H 141.3°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#2F971F
RGBrgb(47, 151, 31)
HSLhsl(112, 66%, 36%)
HSVhsv(112, 79%, 59%)
CMYKcmyk(68.9%, 0%, 79.5%, 40.8%)
CIE-LABlab(54.90, -51.44, 50.41)
CIE-LCHlch(54.90, 72.02, 135.58°)
OKLaboklab(59.43% -0.1405 0.1126)
OKLCHoklch(59.43% 0.18 141.3)
XYZxyz(12.4856, 22.8352, 5.0457)
Luminance0.2284 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F971F #871F97
analogous
#6B971F #2F971F #1F974B
triadic
#2F971F #1F2F97 #971F2F
tetradic
#2F971F #1F6B97 #871F97 #974B1F
square
#2F971F #1F6B97 #871F97 #974B1F
split-complementary
#2F971F #4B1F97 #971F6B
monochromatic
#0F310A #1F6415 #2F971F #3FCA29 #66DC54

Accessibility & contrast

On white

3.77
#2F971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#2F971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F971F
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F971F#FFFFFF#000000##000000
##2F971F1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8800
Deuteranopia (green-blind)
#8F802D
Tritanopia (blue-blind)
#199281
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #2f971f;
/* rgb */ color: rgb(47, 151, 31);
/* oklch */ color: oklch(59.4% 0.180 141.3);
Tailwind
colors: {
  custom: {
    50: '#77b765',
    500: '#2f971f',
    950: '#000000',
  },
}
SCSS
$custom: #2f971f;
$custom-light: #77b765;
$custom-dark: #000000;
JSON
{
  "hex": "#2f971f",
  "rgb": {
    "r": 47,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 112,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59434,
    "c": 0.18002,
    "h": 141.3
  },
  "luminance": 0.22836
}

Semantic roles & 50–950 ramp

primary
#2F971F
secondary
#B152BF
accent
#3FE9D2
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #2F971F

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

Preview Lab → · Contrast checker → · Palette generator →

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