#21571B#21571B

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

Color values

HEX#21571B
RGBrgb(33, 87, 27)
HSLhsl(114, 53%, 22%)
HSVhsv(114, 69%, 34%)
CMYKcmyk(62.1%, 0%, 69%, 65.9%)
CIE-LABlab(32.30, -30.96, 28.74)
CIE-LCHlch(32.30, 42.24, 137.12°)
OKLaboklab(40.61% -0.0845 0.0667)
OKLCHoklch(40.61% 0.108 141.7)
XYZxyz(4.2330, 7.2185, 2.2069)
Luminance0.0722 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21571B #511B57
analogous
#3F571B #21571B #1B5733
triadic
#21571B #1B2157 #571B21
tetradic
#21571B #1B3F57 #511B57 #57331B
square
#21571B #1B3F57 #511B57 #57331B
split-complementary
#21571B #331B57 #571B3F
monochromatic
#091707 #0F280D #21571B #338629 #44B438

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21571B#FFFFFF#000000##FFFFFF
##21571B1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21571b;
/* rgb */ color: rgb(33, 87, 27);
/* oklch */ color: oklch(40.6% 0.108 141.7);
Tailwind
colors: {
  custom: {
    50: '#63875a',
    500: '#21571b',
    950: '#000000',
  },
}
SCSS
$custom: #21571b;
$custom-light: #63875a;
$custom-dark: #000000;
JSON
{
  "hex": "#21571b",
  "rgb": {
    "r": 33,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 114,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.40605,
    "c": 0.10765,
    "h": 141.7
  },
  "luminance": 0.07219
}

Semantic roles & 50–950 ramp

primary
#21571B
secondary
#85418D
accent
#4CDCCE
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #21571B

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

Preview Lab → · Contrast checker → · Palette generator →

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