#21872C#21872C

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

Color values

HEX#21872C
RGBrgb(33, 135, 44)
HSLhsl(126, 61%, 33%)
HSVhsv(126, 76%, 53%)
CMYKcmyk(75.6%, 0%, 67.4%, 47.1%)
CIE-LABlab(49.29, -47.41, 39.50)
CIE-LCHlch(49.29, 61.71, 140.20°)
OKLaboklab(54.72% -0.1282 0.0915)
OKLCHoklch(54.72% 0.157 144.5)
XYZxyz(9.7451, 17.8320, 5.3107)
Luminance0.1783 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21872C #87217C
analogous
#498721 #21872C #21875F
triadic
#21872C #2C2187 #872C21
tetradic
#21872C #214987 #87217C #875F21
square
#21872C #214987 #87217C #875F21
split-complementary
#21872C #5F2187 #872149
monochromatic
#09250C #15561C #21872C #2DB83C #4FD45D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21872C#FFFFFF#000000##FFFFFF
##21872C1.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)
#8A7A20
Deuteranopia (green-blind)
#7E7234
Tritanopia (blue-blind)
#008374
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #21872c;
/* rgb */ color: rgb(33, 135, 44);
/* oklch */ color: oklch(54.7% 0.157 144.5);
Tailwind
colors: {
  custom: {
    50: '#6eab69',
    500: '#21872c',
    950: '#000000',
  },
}
SCSS
$custom: #21872c;
$custom-light: #6eab69;
$custom-dark: #000000;
JSON
{
  "hex": "#21872c",
  "rgb": {
    "r": 33,
    "g": 135,
    "b": 44
  },
  "hsl": {
    "h": 126.471,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5472,
    "c": 0.15749,
    "h": 144.5
  },
  "luminance": 0.17833
}

Semantic roles & 50–950 ramp

primary
#21872C
secondary
#B74DAC
accent
#44D3E4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #21872C

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

Preview Lab → · Contrast checker → · Palette generator →

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