#20871B#20871B

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

Color values

HEX#20871B
RGBrgb(32, 135, 27)
HSLhsl(117, 67%, 32%)
HSVhsv(117, 80%, 53%)
CMYKcmyk(76.3%, 0%, 80%, 47.1%)
CIE-LABlab(49.15, -49.11, 46.07)
CIE-LCHlch(49.15, 67.34, 136.83°)
OKLaboklab(54.55% -0.1336 0.1031)
OKLCHoklch(54.55% 0.169 142.3)
XYZxyz(9.4569, 17.7131, 3.9573)
Luminance0.1771 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20871B #821B87
analogous
#56871B #20871B #1B874C
triadic
#20871B #1B2087 #871B20
tetradic
#20871B #1B5687 #821B87 #874C1B
square
#20871B #1B5687 #821B87 #874C1B
split-complementary
#20871B #4C1B87 #871B56
monochromatic
#082107 #145411 #20871B #2CBA25 #4AD943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##20871B#FFFFFF#000000##FFFFFF
##20871B1.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)
#8A7A00
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #20871b;
/* rgb */ color: rgb(32, 135, 27);
/* oklch */ color: oklch(54.6% 0.169 142.3);
Tailwind
colors: {
  custom: {
    50: '#6eab60',
    500: '#20871b',
    950: '#000000',
  },
}
SCSS
$custom: #20871b;
$custom-light: #6eab60;
$custom-dark: #000000;
JSON
{
  "hex": "#20871b",
  "rgb": {
    "r": 32,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 117.222,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54553,
    "c": 0.1687,
    "h": 142.3
  },
  "luminance": 0.17714
}

Semantic roles & 50–950 ramp

primary
#20871B
secondary
#B544BA
accent
#3EEAE2
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #20871B

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

Preview Lab → · Contrast checker → · Palette generator →

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