#21872E#21872E

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

Color values

HEX#21872E
RGBrgb(33, 135, 46)
HSLhsl(128, 61%, 33%)
HSVhsv(128, 76%, 53%)
CMYKcmyk(75.6%, 0%, 65.9%, 47.1%)
CIE-LABlab(49.31, -47.18, 38.61)
CIE-LCHlch(49.31, 60.97, 140.70°)
OKLaboklab(54.74% -0.1275 0.0899)
OKLCHoklch(54.74% 0.156 144.8)
XYZxyz(9.7837, 17.8474, 5.5135)
Luminance0.1785 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21872E #87217A
analogous
#478721 #21872E #218761
triadic
#21872E #2E2187 #872E21
tetradic
#21872E #214787 #87217A #876121
square
#21872E #214787 #87217A #876121
split-complementary
#21872E #612187 #872147
monochromatic
#09250C #15561D #21872E #2DB83F #4FD460

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21872E#FFFFFF#000000##FFFFFF
##21872E1.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)
#897A23
Deuteranopia (green-blind)
#7E7236
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #21872e;
/* rgb */ color: rgb(33, 135, 46);
/* oklch */ color: oklch(54.7% 0.156 144.8);
Tailwind
colors: {
  custom: {
    50: '#6dab6b',
    500: '#21872e',
    950: '#000000',
  },
}
SCSS
$custom: #21872e;
$custom-light: #6dab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#21872e",
  "rgb": {
    "r": 33,
    "g": 135,
    "b": 46
  },
  "hsl": {
    "h": 127.647,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.54742,
    "c": 0.15595,
    "h": 144.8
  },
  "luminance": 0.17849
}

Semantic roles & 50–950 ramp

primary
#21872E
secondary
#B74DAA
accent
#44CFE4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #21872E

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

Preview Lab → · Contrast checker → · Palette generator →

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