#2B971B#2B971B

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

Color values

HEX#2B971B
RGBrgb(43, 151, 27)
HSLhsl(112, 70%, 35%)
HSVhsv(112, 82%, 59%)
CMYKcmyk(71.5%, 0%, 82.1%, 40.8%)
CIE-LABlab(54.79, -52.49, 51.51)
CIE-LCHlch(54.79, 73.54, 135.54°)
OKLaboklab(59.31% -0.1433 0.1143)
OKLCHoklch(59.31% 0.183 141.4)
XYZxyz(12.2600, 22.7246, 4.7769)
Luminance0.2273 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B971B #871B97
analogous
#69971B #2B971B #1B9749
triadic
#2B971B #1B2B97 #971B2B
tetradic
#2B971B #1B6997 #871B97 #97491B
square
#2B971B #1B6997 #871B97 #97491B
split-complementary
#2B971B #491B97 #971B69
monochromatic
#0D2F08 #1C6312 #2B971B #3ACB24 #60DF4D

Accessibility & contrast

On white

3.79
#2B971B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B971B#FFFFFF#000000##000000
##2B971B1.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b971b;
/* rgb */ color: rgb(43, 151, 27);
/* oklch */ color: oklch(59.3% 0.183 141.4);
Tailwind
colors: {
  custom: {
    50: '#76b763',
    500: '#2b971b',
    950: '#000000',
  },
}
SCSS
$custom: #2b971b;
$custom-light: #76b763;
$custom-dark: #000000;
JSON
{
  "hex": "#2b971b",
  "rgb": {
    "r": 43,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 112.258,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59305,
    "c": 0.1833,
    "h": 141.4
  },
  "luminance": 0.22726
}

Semantic roles & 50–950 ramp

primary
#2B971B
secondary
#B24CC1
accent
#3BECD6
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #2B971B

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

Preview Lab → · Contrast checker → · Palette generator →

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