#20971B#20971B

#20971B is a mid, vivid green. Relative luminance 0.225; OKLCH L 59.1% C 0.186 H 142.4°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#20971B
RGBrgb(32, 151, 27)
HSLhsl(118, 70%, 35%)
HSVhsv(118, 82%, 59%)
CMYKcmyk(78.8%, 0%, 82.1%, 40.8%)
CIE-LABlab(54.57, -54.34, 51.23)
CIE-LCHlch(54.57, 74.68, 136.69°)
OKLaboklab(59.07% -0.1477 0.1138)
OKLCHoklch(59.07% 0.186 142.4)
XYZxyz(11.8594, 22.5180, 4.7581)
Luminance0.2252 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20971B #921B97
analogous
#5E971B #20971B #1B9754
triadic
#20971B #1B2097 #971B20
tetradic
#20971B #1B5E97 #921B97 #97541B
square
#20971B #1B5E97 #921B97 #97541B
split-complementary
#20971B #541B97 #971B5E
monochromatic
#0A2F08 #156312 #20971B #2BCB24 #53DF4D

Accessibility & contrast

On white

3.82
#20971B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#20971B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #20971B
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20971B#FFFFFF#000000##000000
##20971B1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20971b;
/* rgb */ color: rgb(32, 151, 27);
/* oklch */ color: oklch(59.1% 0.186 142.4);
Tailwind
colors: {
  custom: {
    50: '#72b763',
    500: '#20971b',
    950: '#000000',
  },
}
SCSS
$custom: #20971b;
$custom-light: #72b763;
$custom-dark: #000000;
JSON
{
  "hex": "#20971b",
  "rgb": {
    "r": 32,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 117.581,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59065,
    "c": 0.18648,
    "h": 142.4
  },
  "luminance": 0.22519
}

Semantic roles & 50–950 ramp

primary
#20971B
secondary
#BD4CC1
accent
#3BECE5
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #20971B

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

Preview Lab → · Contrast checker → · Palette generator →

#20971B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva