#2B971F#2B971F

#2B971F is a mid, vivid green. Relative luminance 0.227; OKLCH L 59.3% C 0.181 H 141.7°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#2B971F
RGBrgb(43, 151, 31)
HSLhsl(114, 66%, 36%)
HSVhsv(114, 79%, 59%)
CMYKcmyk(71.5%, 0%, 79.5%, 40.8%)
CIE-LABlab(54.81, -52.24, 50.28)
CIE-LCHlch(54.81, 72.51, 136.09°)
OKLaboklab(59.33% -0.1424 0.1123)
OKLCHoklch(59.33% 0.181 141.7)
XYZxyz(12.3095, 22.7444, 5.0374)
Luminance0.2275 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B971F #8B1F97
analogous
#67971F #2B971F #1F974F
triadic
#2B971F #1F2B97 #971F2B
tetradic
#2B971F #1F6797 #8B1F97 #974F1F
square
#2B971F #1F6797 #8B1F97 #974F1F
split-complementary
#2B971F #4F1F97 #971F67
monochromatic
#0E310A #1D6415 #2B971F #39CA29 #62DC54

Accessibility & contrast

On white

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

On black

5.55
#2B971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2B971F
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B971F#FFFFFF#000000##000000
##2B971F1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8800
Deuteranopia (green-blind)
#8E802D
Tritanopia (blue-blind)
#0D9281
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #2b971f;
/* rgb */ color: rgb(43, 151, 31);
/* oklch */ color: oklch(59.3% 0.181 141.7);
Tailwind
colors: {
  custom: {
    50: '#76b765',
    500: '#2b971f',
    950: '#000000',
  },
}
SCSS
$custom: #2b971f;
$custom-light: #76b765;
$custom-dark: #000000;
JSON
{
  "hex": "#2b971f",
  "rgb": {
    "r": 43,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 114,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59329,
    "c": 0.18138,
    "h": 141.7
  },
  "luminance": 0.22746
}

Semantic roles & 50–950 ramp

primary
#2B971F
secondary
#B552BF
accent
#3FE9D8
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #2B971F

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

Preview Lab → · Contrast checker → · Palette generator →

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