#20971F#20971F

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

Color values

HEX#20971F
RGBrgb(32, 151, 31)
HSLhsl(120, 66%, 36%)
HSVhsv(120, 79%, 59%)
CMYKcmyk(78.8%, 0%, 79.5%, 40.8%)
CIE-LABlab(54.59, -54.08, 50.00)
CIE-LCHlch(54.59, 73.66, 137.25°)
OKLaboklab(59.09% -0.1468 0.1118)
OKLCHoklch(59.09% 0.185 142.7)
XYZxyz(11.9089, 22.5378, 5.0187)
Luminance0.2254 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20971F #961F97
analogous
#5C971F #20971F #1F975A
triadic
#20971F #1F2097 #971F20
tetradic
#20971F #1F5C97 #961F97 #975A1F
square
#20971F #1F5C97 #961F97 #975A1F
split-complementary
#20971F #5A1F97 #971F5C
monochromatic
#0A310A #156415 #20971F #2BCA29 #56DC54

Accessibility & contrast

On white

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

On black

5.51
#20971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #20971F
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20971F#FFFFFF#000000##000000
##20971F1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8800
Deuteranopia (green-blind)
#8E7F2D
Tritanopia (blue-blind)
#009281
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #20971f;
/* rgb */ color: rgb(32, 151, 31);
/* oklch */ color: oklch(59.1% 0.185 142.7);
Tailwind
colors: {
  custom: {
    50: '#72b765',
    500: '#20971f',
    950: '#000000',
  },
}
SCSS
$custom: #20971f;
$custom-light: #72b765;
$custom-dark: #000000;
JSON
{
  "hex": "#20971f",
  "rgb": {
    "r": 32,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 119.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59089,
    "c": 0.18458,
    "h": 142.7
  },
  "luminance": 0.22539
}

Semantic roles & 50–950 ramp

primary
#20971F
secondary
#BE52BF
accent
#3FE9E7
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #20971F

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

Preview Lab → · Contrast checker → · Palette generator →

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