#21872F#21872F

#21872F is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.8% C 0.155 H 145.0°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#21872F
RGBrgb(33, 135, 47)
HSLhsl(128, 61%, 33%)
HSVhsv(128, 76%, 53%)
CMYKcmyk(75.6%, 0%, 65.2%, 47.1%)
CIE-LABlab(49.32, -47.07, 38.16)
CIE-LCHlch(49.32, 60.59, 140.96°)
OKLaboklab(54.75% -0.1271 0.089)
OKLCHoklch(54.75% 0.155 145)
XYZxyz(9.8036, 17.8554, 5.6185)
Luminance0.1786 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21872F #872179
analogous
#468721 #21872F #218762
triadic
#21872F #2F2187 #872F21
tetradic
#21872F #214687 #872179 #876221
square
#21872F #214687 #872179 #876221
split-complementary
#21872F #622187 #872146
monochromatic
#09250D #15561E #21872F #2DB840 #4FD461

Accessibility & contrast

On white

4.59
#21872F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #21872F
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21872F#FFFFFF#000000##FFFFFF
##21872F1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21872f;
/* rgb */ color: rgb(33, 135, 47);
/* oklch */ color: oklch(54.8% 0.155 145.0);
Tailwind
colors: {
  custom: {
    50: '#6dab6b',
    500: '#21872f',
    950: '#000000',
  },
}
SCSS
$custom: #21872f;
$custom-light: #6dab6b;
$custom-dark: #000000;
JSON
{
  "hex": "#21872f",
  "rgb": {
    "r": 33,
    "g": 135,
    "b": 47
  },
  "hsl": {
    "h": 128.235,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.54753,
    "c": 0.15516,
    "h": 145
  },
  "luminance": 0.17857
}

Semantic roles & 50–950 ramp

primary
#21872F
secondary
#B74DA8
accent
#44CEE4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #21872F

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

Preview Lab → · Contrast checker → · Palette generator →

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