#20871E#20871E

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

Color values

HEX#20871E
RGBrgb(32, 135, 30)
HSLhsl(119, 64%, 32%)
HSVhsv(119, 78%, 53%)
CMYKcmyk(76.3%, 0%, 77.8%, 47.1%)
CIE-LABlab(49.16, -48.89, 45.05)
CIE-LCHlch(49.16, 66.48, 137.34°)
OKLaboklab(54.57% -0.1328 0.1014)
OKLCHoklch(54.57% 0.167 142.7)
XYZxyz(9.4934, 17.7277, 4.1495)
Luminance0.1773 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20871E #851E87
analogous
#55871E #20871E #1E8750
triadic
#20871E #1E2087 #871E20
tetradic
#20871E #1E5587 #851E87 #87501E
square
#20871E #1E5587 #851E87 #87501E
split-complementary
#20871E #501E87 #871E55
monochromatic
#082308 #145513 #20871E #2CB929 #4CD749

Accessibility & contrast

On white

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

On black

4.55
#20871E on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##20871E#FFFFFF#000000##FFFFFF
##20871E1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20871e;
/* rgb */ color: rgb(32, 135, 30);
/* oklch */ color: oklch(54.6% 0.167 142.7);
Tailwind
colors: {
  custom: {
    50: '#6eab62',
    500: '#20871e',
    950: '#000000',
  },
}
SCSS
$custom: #20871e;
$custom-light: #6eab62;
$custom-dark: #000000;
JSON
{
  "hex": "#20871e",
  "rgb": {
    "r": 32,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 118.857,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54574,
    "c": 0.16707,
    "h": 142.7
  },
  "luminance": 0.17729
}

Semantic roles & 50–950 ramp

primary
#20871E
secondary
#B748B9
accent
#41E7E4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #20871E

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

Preview Lab → · Contrast checker → · Palette generator →

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