#20842A#20842A

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

Color values

HEX#20842A
RGBrgb(32, 132, 42)
HSLhsl(126, 61%, 32%)
HSVhsv(126, 76%, 52%)
CMYKcmyk(75.8%, 0%, 68.2%, 48.2%)
CIE-LABlab(48.23, -46.75, 39.22)
CIE-LCHlch(48.23, 61.02, 140.00°)
OKLaboklab(53.83% -0.1264 0.0907)
OKLCHoklch(53.83% 0.156 144.3)
XYZxyz(9.2642, 16.9757, 4.9784)
Luminance0.1698 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20842A #84207A
analogous
#488420 #20842A #20845C
triadic
#20842A #2A2084 #842A20
tetradic
#20842A #204884 #84207A #845C20
square
#20842A #204884 #84207A #845C20
split-complementary
#20842A #5C2084 #842048
monochromatic
#08210B #14531A #20842A #2CB53A #4BD359

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##20842A#FFFFFF#000000##FFFFFF
##20842A1.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)
#86771E
Deuteranopia (green-blind)
#7B6F32
Tritanopia (blue-blind)
#008071
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #20842a;
/* rgb */ color: rgb(32, 132, 42);
/* oklch */ color: oklch(53.8% 0.156 144.3);
Tailwind
colors: {
  custom: {
    50: '#6da968',
    500: '#20842a',
    950: '#000000',
  },
}
SCSS
$custom: #20842a;
$custom-light: #6da968;
$custom-dark: #000000;
JSON
{
  "hex": "#20842a",
  "rgb": {
    "r": 32,
    "g": 132,
    "b": 42
  },
  "hsl": {
    "h": 126,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.53827,
    "c": 0.15559,
    "h": 144.3
  },
  "luminance": 0.16977
}

Semantic roles & 50–950 ramp

primary
#20842A
secondary
#B64AAB
accent
#44D4E4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #20842A

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

Preview Lab → · Contrast checker → · Palette generator →

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