#20821F#20821F

#20821F is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.2% C 0.161 H 142.8°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#20821F
RGBrgb(32, 130, 31)
HSLhsl(119, 61%, 32%)
HSVhsv(119, 76%, 51%)
CMYKcmyk(75.4%, 0%, 76.2%, 49%)
CIE-LABlab(47.46, -47.11, 42.97)
CIE-LCHlch(47.46, 63.77, 137.63°)
OKLaboklab(53.16% -0.1279 0.0972)
OKLCHoklch(53.16% 0.161 142.8)
XYZxyz(8.8251, 16.3703, 3.9907)
Luminance0.1637 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20821F #811F82
analogous
#52821F #20821F #1F8250
triadic
#20821F #1F2082 #821F20
tetradic
#20821F #1F5282 #811F82 #82501F
square
#20821F #1F5282 #811F82 #82501F
split-complementary
#20821F #501F82 #821F52
monochromatic
#081F07 #145113 #20821F #2CB32B #49D348

Accessibility & contrast

On white

4.91
#20821F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#20821F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #20821F
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20821F#FFFFFF#000000##FFFFFF
##20821F1.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85750C
Deuteranopia (green-blind)
#7A6E2A
Tritanopia (blue-blind)
#007E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #20821f;
/* rgb */ color: rgb(32, 130, 31);
/* oklch */ color: oklch(53.2% 0.161 142.8);
Tailwind
colors: {
  custom: {
    50: '#6da762',
    500: '#20821f',
    950: '#000000',
  },
}
SCSS
$custom: #20821f;
$custom-light: #6da762;
$custom-dark: #000000;
JSON
{
  "hex": "#20821f",
  "rgb": {
    "r": 32,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 119.394,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53158,
    "c": 0.16065,
    "h": 142.8
  },
  "luminance": 0.16371
}

Semantic roles & 50–950 ramp

primary
#20821F
secondary
#B448B5
accent
#43E5E3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #20821F

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

Preview Lab → · Contrast checker → · Palette generator →

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