#20871F#20871F

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

Color values

HEX#20871F
RGBrgb(32, 135, 31)
HSLhsl(119, 63%, 33%)
HSVhsv(119, 77%, 53%)
CMYKcmyk(76.3%, 0%, 77%, 47.1%)
CIE-LABlab(49.17, -48.81, 44.69)
CIE-LCHlch(49.17, 66.18, 137.52°)
OKLaboklab(54.58% -0.1326 0.1007)
OKLCHoklch(54.58% 0.167 142.8)
XYZxyz(9.5064, 17.7329, 4.2178)
Luminance0.1773 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20871F #861F87
analogous
#54871F #20871F #1F8752
triadic
#20871F #1F2087 #871F20
tetradic
#20871F #1F5487 #861F87 #87521F
square
#20871F #1F5487 #861F87 #87521F
split-complementary
#20871F #521F87 #871F54
monochromatic
#082308 #145514 #20871F #2CB92A #4CD64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##20871F#FFFFFF#000000##FFFFFF
##20871F1.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)
#8A7A09
Deuteranopia (green-blind)
#7F722A
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #20871f;
/* rgb */ color: rgb(32, 135, 31);
/* oklch */ color: oklch(54.6% 0.167 142.8);
Tailwind
colors: {
  custom: {
    50: '#6eab62',
    500: '#20871f',
    950: '#000000',
  },
}
SCSS
$custom: #20871f;
$custom-light: #6eab62;
$custom-dark: #000000;
JSON
{
  "hex": "#20871f",
  "rgb": {
    "r": 32,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 119.423,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54581,
    "c": 0.1665,
    "h": 142.8
  },
  "luminance": 0.17734
}

Semantic roles & 50–950 ramp

primary
#20871F
secondary
#B74AB8
accent
#42E6E4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #20871F

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

Preview Lab → · Contrast checker → · Palette generator →

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