#20842F#20842F

#20842F is a mid, vivid green. Relative luminance 0.170; OKLCH L 53.9% C 0.152 H 145.2°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#20842F
RGBrgb(32, 132, 47)
HSLhsl(129, 61%, 32%)
HSVhsv(129, 76%, 52%)
CMYKcmyk(75.8%, 0%, 64.4%, 48.2%)
CIE-LABlab(48.28, -46.17, 36.98)
CIE-LCHlch(48.28, 59.15, 141.30°)
OKLaboklab(53.88% -0.1246 0.0865)
OKLCHoklch(53.88% 0.152 145.2)
XYZxyz(9.3594, 17.0138, 5.4795)
Luminance0.1701 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20842F #842075
analogous
#438420 #20842F #208461
triadic
#20842F #2F2084 #842F20
tetradic
#20842F #204384 #842075 #846120
square
#20842F #204384 #842075 #846120
split-complementary
#20842F #612084 #842043
monochromatic
#08210C #14531D #20842F #2CB541 #4BD35F

Accessibility & contrast

On white

4.77
#20842F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#20842F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #20842F
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20842F#FFFFFF#000000##FFFFFF
##20842F1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867725
Deuteranopia (green-blind)
#7B7036
Tritanopia (blue-blind)
#008172
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #20842f;
/* rgb */ color: rgb(32, 132, 47);
/* oklch */ color: oklch(53.9% 0.152 145.2);
Tailwind
colors: {
  custom: {
    50: '#6ca96b',
    500: '#20842f',
    950: '#000000',
  },
}
SCSS
$custom: #20842f;
$custom-light: #6ca96b;
$custom-dark: #000000;
JSON
{
  "hex": "#20842f",
  "rgb": {
    "r": 32,
    "g": 132,
    "b": 47
  },
  "hsl": {
    "h": 129,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.53882,
    "c": 0.15169,
    "h": 145.2
  },
  "luminance": 0.17015
}

Semantic roles & 50–950 ramp

primary
#20842F
secondary
#B64AA6
accent
#44CCE4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #20842F

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

Preview Lab → · Contrast checker → · Palette generator →

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