#20981F#20981F

#20981F is a mid, vivid green. Relative luminance 0.229; OKLCH L 59.4% C 0.186 H 142.7°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#20981F
RGBrgb(32, 152, 31)
HSLhsl(120, 66%, 36%)
HSVhsv(120, 80%, 60%)
CMYKcmyk(78.9%, 0%, 79.6%, 40.4%)
CIE-LABlab(54.93, -54.40, 50.33)
CIE-LCHlch(54.93, 74.11, 137.23°)
OKLaboklab(59.37% -0.1477 0.1125)
OKLCHoklch(59.37% 0.186 142.7)
XYZxyz(12.0705, 22.8610, 5.0725)
Luminance0.2286 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20981F #971F98
analogous
#5C981F #20981F #1F985A
triadic
#20981F #1F2098 #981F20
tetradic
#20981F #1F5C98 #971F98 #985A1F
square
#20981F #1F5C98 #971F98 #985A1F
split-complementary
#20981F #5A1F98 #981F5C
monochromatic
#0B320A #156515 #20981F #2BCB29 #56DC55

Accessibility & contrast

On white

3.77
#20981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#20981F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #20981F
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20981F#FFFFFF#000000##000000
##20981F1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8900
Deuteranopia (green-blind)
#8E802D
Tritanopia (blue-blind)
#009381
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #20981f;
/* rgb */ color: rgb(32, 152, 31);
/* oklch */ color: oklch(59.4% 0.186 142.7);
Tailwind
colors: {
  custom: {
    50: '#72b765',
    500: '#20981f',
    950: '#000000',
  },
}
SCSS
$custom: #20981f;
$custom-light: #72b765;
$custom-dark: #000000;
JSON
{
  "hex": "#20981f",
  "rgb": {
    "r": 32,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 119.504,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59368,
    "c": 0.18567,
    "h": 142.7
  },
  "luminance": 0.22862
}

Semantic roles & 50–950 ramp

primary
#20981F
secondary
#BF53C0
accent
#3FE9E8
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #20981F

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

Preview Lab → · Contrast checker → · Palette generator →

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