#20871D#20871D

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

Color values

HEX#20871D
RGBrgb(32, 135, 29)
HSLhsl(118, 65%, 32%)
HSVhsv(118, 79%, 53%)
CMYKcmyk(76.3%, 0%, 78.5%, 47.1%)
CIE-LABlab(49.16, -48.97, 45.40)
CIE-LCHlch(49.16, 66.77, 137.17°)
OKLaboklab(54.57% -0.1331 0.1019)
OKLCHoklch(54.57% 0.168 142.5)
XYZxyz(9.4808, 17.7226, 4.0833)
Luminance0.1772 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20871D #841D87
analogous
#55871D #20871D #1D874F
triadic
#20871D #1D2087 #871D20
tetradic
#20871D #1D5587 #841D87 #874F1D
square
#20871D #1D5587 #841D87 #874F1D
split-complementary
#20871D #4F1D87 #871D55
monochromatic
#082207 #145512 #20871D #2CB928 #4BD747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##20871D#FFFFFF#000000##FFFFFF
##20871D1.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)
#8A7A04
Deuteranopia (green-blind)
#7F7229
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #20871d;
/* rgb */ color: rgb(32, 135, 29);
/* oklch */ color: oklch(54.6% 0.168 142.5);
Tailwind
colors: {
  custom: {
    50: '#6eab61',
    500: '#20871d',
    950: '#000000',
  },
}
SCSS
$custom: #20871d;
$custom-light: #6eab61;
$custom-dark: #000000;
JSON
{
  "hex": "#20871d",
  "rgb": {
    "r": 32,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 118.302,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54567,
    "c": 0.16762,
    "h": 142.5
  },
  "luminance": 0.17724
}

Semantic roles & 50–950 ramp

primary
#20871D
secondary
#B646B9
accent
#40E8E3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #20871D

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

Preview Lab → · Contrast checker → · Palette generator →

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