#20571B#20571B

#20571B is a dark, moderate green. Relative luminance 0.072; OKLCH L 40.6% C 0.108 H 142.0°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#20571B
RGBrgb(32, 87, 27)
HSLhsl(115, 53%, 22%)
HSVhsv(115, 69%, 34%)
CMYKcmyk(63.2%, 0%, 69%, 65.9%)
CIE-LABlab(32.26, -31.24, 28.69)
CIE-LCHlch(32.26, 42.42, 137.43°)
OKLaboklab(40.57% -0.0852 0.0666)
OKLCHoklch(40.57% 0.108 142)
XYZxyz(4.2015, 7.2022, 2.2055)
Luminance0.0720 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20571B #521B57
analogous
#3E571B #20571B #1B5734
triadic
#20571B #1B2057 #571B20
tetradic
#20571B #1B3E57 #521B57 #57341B
square
#20571B #1B3E57 #521B57 #57341B
split-complementary
#20571B #341B57 #571B3E
monochromatic
#091707 #0F280D #20571B #318629 #42B438

Accessibility & contrast

On white

8.60
#20571B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#20571B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20571B
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20571B#FFFFFF#000000##FFFFFF
##20571B1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594F14
Deuteranopia (green-blind)
#524A20
Tritanopia (blue-blind)
#18544A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #20571b;
/* rgb */ color: rgb(32, 87, 27);
/* oklch */ color: oklch(40.6% 0.108 142.0);
Tailwind
colors: {
  custom: {
    50: '#63875a',
    500: '#20571b',
    950: '#000000',
  },
}
SCSS
$custom: #20571b;
$custom-light: #63875a;
$custom-dark: #000000;
JSON
{
  "hex": "#20571b",
  "rgb": {
    "r": 32,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 115,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.40565,
    "c": 0.10814,
    "h": 142
  },
  "luminance": 0.07203
}

Semantic roles & 50–950 ramp

primary
#20571B
secondary
#86418D
accent
#4CDCD0
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #20571B

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

Preview Lab → · Contrast checker → · Palette generator →

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