#21571D#21571D

#21571D is a dark, moderate green. Relative luminance 0.072; OKLCH L 40.6% C 0.106 H 142.2°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#21571D
RGBrgb(33, 87, 29)
HSLhsl(116, 50%, 23%)
HSVhsv(116, 67%, 34%)
CMYKcmyk(62.1%, 0%, 66.7%, 65.9%)
CIE-LABlab(32.32, -30.71, 27.76)
CIE-LCHlch(32.32, 41.40, 137.89°)
OKLaboklab(40.63% -0.0837 0.0649)
OKLCHoklch(40.63% 0.106 142.2)
XYZxyz(4.2569, 7.2281, 2.3330)
Luminance0.0723 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21571D #531D57
analogous
#3E571D #21571D #1D5736
triadic
#21571D #1D2157 #571D21
tetradic
#21571D #1D3E57 #531D57 #57361D
square
#21571D #1D3E57 #531D57 #57361D
split-complementary
#21571D #361D57 #571D3E
monochromatic
#091708 #10290E #21571D #32852C #44B33C

Accessibility & contrast

On white

8.59
#21571D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#21571D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21571D
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21571D#FFFFFF#000000##FFFFFF
##21571D1.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594F16
Deuteranopia (green-blind)
#524A22
Tritanopia (blue-blind)
#19544B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #21571d;
/* rgb */ color: rgb(33, 87, 29);
/* oklch */ color: oklch(40.6% 0.106 142.2);
Tailwind
colors: {
  custom: {
    50: '#63875b',
    500: '#21571d',
    950: '#000000',
  },
}
SCSS
$custom: #21571d;
$custom-light: #63875b;
$custom-dark: #000000;
JSON
{
  "hex": "#21571d",
  "rgb": {
    "r": 33,
    "g": 87,
    "b": 29
  },
  "hsl": {
    "h": 115.862,
    "s": 50,
    "l": 22.745
  },
  "oklch": {
    "l": 0.40629,
    "c": 0.10589,
    "h": 142.2
  },
  "luminance": 0.07228
}

Semantic roles & 50–950 ramp

primary
#21571D
secondary
#87448C
accent
#4EDAD0
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #21571D

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

Preview Lab → · Contrast checker → · Palette generator →

#21571D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva