#20841C#20841C

#20841C is a mid, vivid green. Relative luminance 0.169; OKLCH L 53.7% C 0.165 H 142.4°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#20841C
RGBrgb(32, 132, 28)
HSLhsl(118, 65%, 31%)
HSVhsv(118, 79%, 52%)
CMYKcmyk(75.8%, 0%, 78.8%, 48.2%)
CIE-LABlab(48.12, -48.03, 44.73)
CIE-LCHlch(48.12, 65.64, 137.03°)
OKLaboklab(53.71% -0.1306 0.1004)
OKLCHoklch(53.71% 0.165 142.4)
XYZxyz(9.0560, 16.8924, 3.8817)
Luminance0.1689 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20841C #801C84
analogous
#54841C #20841C #1C844C
triadic
#20841C #1C2084 #841C20
tetradic
#20841C #1C5484 #801C84 #844C1C
square
#20841C #1C5484 #801C84 #844C1C
split-complementary
#20841C #4C1C84 #841C54
monochromatic
#081F07 #145211 #20841C #2CB627 #49D743

Accessibility & contrast

On white

4.80
#20841C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#20841C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #20841C
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20841C#FFFFFF#000000##FFFFFF
##20841C1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877703
Deuteranopia (green-blind)
#7C6F28
Tritanopia (blue-blind)
#008070
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #20841c;
/* rgb */ color: rgb(32, 132, 28);
/* oklch */ color: oklch(53.7% 0.165 142.4);
Tailwind
colors: {
  custom: {
    50: '#6da960',
    500: '#20841c',
    950: '#000000',
  },
}
SCSS
$custom: #20841c;
$custom-light: #6da960;
$custom-dark: #000000;
JSON
{
  "hex": "#20841c",
  "rgb": {
    "r": 32,
    "g": 132,
    "b": 28
  },
  "hsl": {
    "h": 117.692,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53706,
    "c": 0.16472,
    "h": 142.4
  },
  "luminance": 0.16893
}

Semantic roles & 50–950 ramp

primary
#20841C
secondary
#B345B7
accent
#40E8E2
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #20841C

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

Preview Lab → · Contrast checker → · Palette generator →

#20841C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva