#21872D#21872D

#21872D is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.7% C 0.157 H 144.6°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#21872D
RGBrgb(33, 135, 45)
HSLhsl(127, 61%, 33%)
HSVhsv(127, 76%, 53%)
CMYKcmyk(75.6%, 0%, 66.7%, 47.1%)
CIE-LABlab(49.30, -47.30, 39.06)
CIE-LCHlch(49.30, 61.34, 140.45°)
OKLaboklab(54.73% -0.1278 0.0907)
OKLCHoklch(54.73% 0.157 144.6)
XYZxyz(9.7642, 17.8396, 5.4109)
Luminance0.1784 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21872D #87217B
analogous
#488721 #21872D #218760
triadic
#21872D #2D2187 #872D21
tetradic
#21872D #214887 #87217B #876021
square
#21872D #214887 #87217B #876021
split-complementary
#21872D #602187 #872148
monochromatic
#09250C #15561D #21872D #2DB83D #4FD45E

Accessibility & contrast

On white

4.60
#21872D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#21872D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #21872D
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21872D#FFFFFF#000000##FFFFFF
##21872D1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897A22
Deuteranopia (green-blind)
#7E7235
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #21872d;
/* rgb */ color: rgb(33, 135, 45);
/* oklch */ color: oklch(54.7% 0.157 144.6);
Tailwind
colors: {
  custom: {
    50: '#6dab6a',
    500: '#21872d',
    950: '#000000',
  },
}
SCSS
$custom: #21872d;
$custom-light: #6dab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#21872d",
  "rgb": {
    "r": 33,
    "g": 135,
    "b": 45
  },
  "hsl": {
    "h": 127.059,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.54731,
    "c": 0.15672,
    "h": 144.6
  },
  "luminance": 0.17841
}

Semantic roles & 50–950 ramp

primary
#21872D
secondary
#B74DAB
accent
#44D1E4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #21872D

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

Preview Lab → · Contrast checker → · Palette generator →

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