#20821B#20821B

#20821B is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.1% C 0.163 H 142.3°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#20821B
RGBrgb(32, 130, 27)
HSLhsl(117, 66%, 31%)
HSVhsv(117, 79%, 51%)
CMYKcmyk(75.4%, 0%, 79.2%, 49%)
CIE-LABlab(47.43, -47.42, 44.41)
CIE-LCHlch(47.43, 64.97, 136.88°)
OKLaboklab(53.13% -0.129 0.0996)
OKLCHoklch(53.13% 0.163 142.3)
XYZxyz(8.7756, 16.3505, 3.7302)
Luminance0.1635 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20821B #7D1B82
analogous
#53821B #20821B #1B8249
triadic
#20821B #1B2082 #821B20
tetradic
#20821B #1B5382 #7D1B82 #82491B
square
#20821B #1B5382 #7D1B82 #82491B
split-complementary
#20821B #491B82 #821B53
monochromatic
#071D06 #144F10 #20821B #2CB526 #47D740

Accessibility & contrast

On white

4.92
#20821B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#20821B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #20821B
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20821B#FFFFFF#000000##FFFFFF
##20821B1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857502
Deuteranopia (green-blind)
#7A6E27
Tritanopia (blue-blind)
#007E6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #20821b;
/* rgb */ color: rgb(32, 130, 27);
/* oklch */ color: oklch(53.1% 0.163 142.3);
Tailwind
colors: {
  custom: {
    50: '#6da760',
    500: '#20821b',
    950: '#000000',
  },
}
SCSS
$custom: #20821b;
$custom-light: #6da760;
$custom-dark: #000000;
JSON
{
  "hex": "#20821b",
  "rgb": {
    "r": 32,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 117.087,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53128,
    "c": 0.16295,
    "h": 142.3
  },
  "luminance": 0.16351
}

Semantic roles & 50–950 ramp

primary
#20821B
secondary
#B043B6
accent
#3FE9E0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #20821B

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

Preview Lab → · Contrast checker → · Palette generator →

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