#2D971F#2D971F

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

Color values

HEX#2D971F
RGBrgb(45, 151, 31)
HSLhsl(113, 66%, 36%)
HSVhsv(113, 79%, 59%)
CMYKcmyk(70.2%, 0%, 79.5%, 40.8%)
CIE-LABlab(54.85, -51.85, 50.34)
CIE-LCHlch(54.85, 72.27, 135.84°)
OKLaboklab(59.38% -0.1415 0.1124)
OKLCHoklch(59.38% 0.181 141.5)
XYZxyz(12.3954, 22.7887, 5.0415)
Luminance0.2279 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D971F #891F97
analogous
#69971F #2D971F #1F974D
triadic
#2D971F #1F2D97 #971F2D
tetradic
#2D971F #1F6997 #891F97 #974D1F
square
#2D971F #1F6997 #891F97 #974D1F
split-complementary
#2D971F #4D1F97 #971F69
monochromatic
#0F310A #1E6415 #2D971F #3CCA29 #64DC54

Accessibility & contrast

On white

3.78
#2D971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#2D971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2D971F
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D971F#FFFFFF#000000##000000
##2D971F1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d971f;
/* rgb */ color: rgb(45, 151, 31);
/* oklch */ color: oklch(59.4% 0.181 141.5);
Tailwind
colors: {
  custom: {
    50: '#76b765',
    500: '#2d971f',
    950: '#000000',
  },
}
SCSS
$custom: #2d971f;
$custom-light: #76b765;
$custom-dark: #000000;
JSON
{
  "hex": "#2d971f",
  "rgb": {
    "r": 45,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 113,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.5938,
    "c": 0.18072,
    "h": 141.5
  },
  "luminance": 0.2279
}

Semantic roles & 50–950 ramp

primary
#2D971F
secondary
#B352BF
accent
#3FE9D5
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #2D971F

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

Preview Lab → · Contrast checker → · Palette generator →

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