#20871A#20871A

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

Color values

HEX#20871A
RGBrgb(32, 135, 26)
HSLhsl(117, 68%, 32%)
HSVhsv(117, 81%, 53%)
CMYKcmyk(76.3%, 0%, 80.7%, 47.1%)
CIE-LABlab(49.14, -49.18, 46.40)
CIE-LCHlch(49.14, 67.61, 136.67°)
OKLaboklab(54.55% -0.1338 0.1036)
OKLCHoklch(54.55% 0.169 142.3)
XYZxyz(9.4455, 17.7085, 3.8974)
Luminance0.1771 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20871A #811A87
analogous
#57871A #20871A #1A874B
triadic
#20871A #1A2087 #871A20
tetradic
#20871A #1A5787 #811A87 #874B1A
square
#20871A #1A5787 #811A87 #874B1A
split-complementary
#20871A #4B1A87 #871A57
monochromatic
#082006 #145410 #20871A #2CBA24 #49DA41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##20871A#FFFFFF#000000##FFFFFF
##20871A1.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)
#7F7227
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #20871a;
/* rgb */ color: rgb(32, 135, 26);
/* oklch */ color: oklch(54.5% 0.169 142.3);
Tailwind
colors: {
  custom: {
    50: '#6eab60',
    500: '#20871a',
    950: '#000000',
  },
}
SCSS
$custom: #20871a;
$custom-light: #6eab60;
$custom-dark: #000000;
JSON
{
  "hex": "#20871a",
  "rgb": {
    "r": 32,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 116.697,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54547,
    "c": 0.16921,
    "h": 142.3
  },
  "luminance": 0.1771
}

Semantic roles & 50–950 ramp

primary
#20871A
secondary
#B442BA
accent
#3DEBE1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #20871A

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

Preview Lab → · Contrast checker → · Palette generator →

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