#20971C#20971C

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

Color values

HEX#20971C
RGBrgb(32, 151, 28)
HSLhsl(118, 69%, 35%)
HSVhsv(118, 81%, 59%)
CMYKcmyk(78.8%, 0%, 81.5%, 40.8%)
CIE-LABlab(54.58, -54.28, 50.93)
CIE-LCHlch(54.58, 74.44, 136.82°)
OKLaboklab(59.07% -0.1475 0.1133)
OKLCHoklch(59.07% 0.186 142.5)
XYZxyz(11.8711, 22.5227, 4.8201)
Luminance0.2252 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20971C #931C97
analogous
#5D971C #20971C #1C9756
triadic
#20971C #1C2097 #971C20
tetradic
#20971C #1C5D97 #931C97 #97561C
square
#20971C #1C5D97 #931C97 #97561C
split-complementary
#20971C #561C97 #971C5D
monochromatic
#0A3009 #156312 #20971C #2BCB26 #54DE4F

Accessibility & contrast

On white

3.81
#20971C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##20971C#FFFFFF#000000##000000
##20971C1.003.815.505.50
#FFFFFF3.811.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: #20971c;
/* rgb */ color: rgb(32, 151, 28);
/* oklch */ color: oklch(59.1% 0.186 142.5);
Tailwind
colors: {
  custom: {
    50: '#72b763',
    500: '#20971c',
    950: '#000000',
  },
}
SCSS
$custom: #20971c;
$custom-light: #72b763;
$custom-dark: #000000;
JSON
{
  "hex": "#20971c",
  "rgb": {
    "r": 32,
    "g": 151,
    "b": 28
  },
  "hsl": {
    "h": 118.049,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.5907,
    "c": 0.18602,
    "h": 142.5
  },
  "luminance": 0.22524
}

Semantic roles & 50–950 ramp

primary
#20971C
secondary
#BD4EC1
accent
#3CECE6
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #20971C

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

Preview Lab → · Contrast checker → · Palette generator →

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