#21872B#21872B

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

Color values

HEX#21872B
RGBrgb(33, 135, 43)
HSLhsl(126, 61%, 33%)
HSVhsv(126, 76%, 53%)
CMYKcmyk(75.6%, 0%, 68.1%, 47.1%)
CIE-LABlab(49.28, -47.52, 39.93)
CIE-LCHlch(49.28, 62.07, 139.96°)
OKLaboklab(54.71% -0.1285 0.0923)
OKLCHoklch(54.71% 0.158 144.3)
XYZxyz(9.7266, 17.8246, 5.2129)
Luminance0.1783 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21872B #87217D
analogous
#4A8721 #21872B #21875E
triadic
#21872B #2B2187 #872B21
tetradic
#21872B #214A87 #87217D #875E21
square
#21872B #214A87 #87217D #875E21
split-complementary
#21872B #5E2187 #87214A
monochromatic
#09250C #15561B #21872B #2DB83B #4FD45C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21872B#FFFFFF#000000##FFFFFF
##21872B1.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)
#8A7A1F
Deuteranopia (green-blind)
#7E7233
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #21872b;
/* rgb */ color: rgb(33, 135, 43);
/* oklch */ color: oklch(54.7% 0.158 144.3);
Tailwind
colors: {
  custom: {
    50: '#6eab69',
    500: '#21872b',
    950: '#000000',
  },
}
SCSS
$custom: #21872b;
$custom-light: #6eab69;
$custom-dark: #000000;
JSON
{
  "hex": "#21872b",
  "rgb": {
    "r": 33,
    "g": 135,
    "b": 43
  },
  "hsl": {
    "h": 125.882,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5471,
    "c": 0.15823,
    "h": 144.3
  },
  "luminance": 0.17826
}

Semantic roles & 50–950 ramp

primary
#21872B
secondary
#B74DAD
accent
#44D4E4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #21872B

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

Preview Lab → · Contrast checker → · Palette generator →

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