#20872A#20872A

#20872A is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.7% C 0.159 H 144.2°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#20872A
RGBrgb(32, 135, 42)
HSLhsl(126, 62%, 33%)
HSVhsv(126, 76%, 53%)
CMYKcmyk(76.3%, 0%, 68.9%, 47.1%)
CIE-LABlab(49.25, -47.79, 40.34)
CIE-LCHlch(49.25, 62.54, 139.84°)
OKLaboklab(54.68% -0.1293 0.0931)
OKLCHoklch(54.68% 0.159 144.2)
XYZxyz(9.6769, 17.8011, 5.1160)
Luminance0.1780 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20872A #87207D
analogous
#4A8720 #20872A #20875D
triadic
#20872A #2A2087 #872A20
tetradic
#20872A #204A87 #87207D #875D20
square
#20872A #204A87 #87207D #875D20
split-complementary
#20872A #5D2087 #87204A
monochromatic
#09240B #14561B #20872A #2CB839 #4DD55A

Accessibility & contrast

On white

4.60
#20872A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#20872A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #20872A
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20872A#FFFFFF#000000##FFFFFF
##20872A1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1E
Deuteranopia (green-blind)
#7E7233
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #20872a;
/* rgb */ color: rgb(32, 135, 42);
/* oklch */ color: oklch(54.7% 0.159 144.2);
Tailwind
colors: {
  custom: {
    50: '#6dab68',
    500: '#20872a',
    950: '#000000',
  },
}
SCSS
$custom: #20872a;
$custom-light: #6dab68;
$custom-dark: #000000;
JSON
{
  "hex": "#20872a",
  "rgb": {
    "r": 32,
    "g": 135,
    "b": 42
  },
  "hsl": {
    "h": 125.825,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.54677,
    "c": 0.15927,
    "h": 144.2
  },
  "luminance": 0.17802
}

Semantic roles & 50–950 ramp

primary
#20872A
secondary
#B84BAD
accent
#43D5E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #20872A

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

Preview Lab → · Contrast checker → · Palette generator →

#20872A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva