#20842B#20842B

#20842B is a mid, vivid green. Relative luminance 0.170; OKLCH L 53.8% C 0.155 H 144.5°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#20842B
RGBrgb(32, 132, 43)
HSLhsl(127, 61%, 32%)
HSVhsv(127, 76%, 52%)
CMYKcmyk(75.8%, 0%, 67.4%, 48.2%)
CIE-LABlab(48.24, -46.63, 38.79)
CIE-LCHlch(48.24, 60.66, 140.25°)
OKLaboklab(53.84% -0.1261 0.0899)
OKLCHoklch(53.84% 0.155 144.5)
XYZxyz(9.2824, 16.9830, 5.0739)
Luminance0.1698 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20842B #842079
analogous
#478420 #20842B #20845D
triadic
#20842B #2B2084 #842B20
tetradic
#20842B #204784 #842079 #845D20
square
#20842B #204784 #842079 #845D20
split-complementary
#20842B #5D2084 #842047
monochromatic
#08210B #14531B #20842B #2CB53B #4BD35A

Accessibility & contrast

On white

4.78
#20842B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #20842B
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20842B#FFFFFF#000000##FFFFFF
##20842B1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867720
Deuteranopia (green-blind)
#7B6F33
Tritanopia (blue-blind)
#008072
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #20842b;
/* rgb */ color: rgb(32, 132, 43);
/* oklch */ color: oklch(53.8% 0.155 144.5);
Tailwind
colors: {
  custom: {
    50: '#6ca969',
    500: '#20842b',
    950: '#000000',
  },
}
SCSS
$custom: #20842b;
$custom-light: #6ca969;
$custom-dark: #000000;
JSON
{
  "hex": "#20842b",
  "rgb": {
    "r": 32,
    "g": 132,
    "b": 43
  },
  "hsl": {
    "h": 126.6,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.53838,
    "c": 0.15483,
    "h": 144.5
  },
  "luminance": 0.16984
}

Semantic roles & 50–950 ramp

primary
#20842B
secondary
#B64AAA
accent
#44D2E4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #20842B

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

Preview Lab → · Contrast checker → · Palette generator →

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