#20871C#20871C

#20871C is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.6% C 0.168 H 142.4°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#20871C
RGBrgb(32, 135, 28)
HSLhsl(118, 66%, 32%)
HSVhsv(118, 79%, 53%)
CMYKcmyk(76.3%, 0%, 79.3%, 47.1%)
CIE-LABlab(49.15, -49.04, 45.74)
CIE-LCHlch(49.15, 67.06, 137.00°)
OKLaboklab(54.56% -0.1333 0.1025)
OKLCHoklch(54.56% 0.168 142.4)
XYZxyz(9.4687, 17.7178, 4.0192)
Luminance0.1772 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20871C #831C87
analogous
#56871C #20871C #1C874E
triadic
#20871C #1C2087 #871C20
tetradic
#20871C #1C5687 #831C87 #874E1C
square
#20871C #1C5687 #831C87 #874E1C
split-complementary
#20871C #4E1C87 #871C56
monochromatic
#082207 #145411 #20871C #2CBA27 #4AD845

Accessibility & contrast

On white

4.62
#20871C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#20871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #20871C
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20871C#FFFFFF#000000##FFFFFF
##20871C1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A02
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #20871c;
/* rgb */ color: rgb(32, 135, 28);
/* oklch */ color: oklch(54.6% 0.168 142.4);
Tailwind
colors: {
  custom: {
    50: '#6eab61',
    500: '#20871c',
    950: '#000000',
  },
}
SCSS
$custom: #20871c;
$custom-light: #6eab61;
$custom-dark: #000000;
JSON
{
  "hex": "#20871c",
  "rgb": {
    "r": 32,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 117.757,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.5456,
    "c": 0.16817,
    "h": 142.4
  },
  "luminance": 0.17719
}

Semantic roles & 50–950 ramp

primary
#20871C
secondary
#B645BA
accent
#3FE9E2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #20871C

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

Preview Lab → · Contrast checker → · Palette generator →

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