#21871C#21871C

#21871C is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.6% C 0.168 H 142.3°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#21871C
RGBrgb(33, 135, 28)
HSLhsl(117, 66%, 32%)
HSVhsv(117, 79%, 53%)
CMYKcmyk(75.6%, 0%, 79.3%, 47.1%)
CIE-LABlab(49.17, -48.87, 45.76)
CIE-LCHlch(49.17, 66.95, 136.88°)
OKLaboklab(54.58% -0.1329 0.1026)
OKLCHoklch(54.58% 0.168 142.3)
XYZxyz(9.5002, 17.7340, 4.0207)
Luminance0.1774 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21871C #821C87
analogous
#57871C #21871C #1C874D
triadic
#21871C #1C2187 #871C21
tetradic
#21871C #1C5787 #821C87 #874D1C
square
#21871C #1C5787 #821C87 #874D1C
split-complementary
#21871C #4D1C87 #871C57
monochromatic
#082207 #155411 #21871C #2DBA27 #4CD845

Accessibility & contrast

On white

4.62
#21871C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#21871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #21871C
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21871C#FFFFFF#000000##FFFFFF
##21871C1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A02
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #21871c;
/* rgb */ color: rgb(33, 135, 28);
/* oklch */ color: oklch(54.6% 0.168 142.3);
Tailwind
colors: {
  custom: {
    50: '#6eab61',
    500: '#21871c',
    950: '#000000',
  },
}
SCSS
$custom: #21871c;
$custom-light: #6eab61;
$custom-dark: #000000;
JSON
{
  "hex": "#21871c",
  "rgb": {
    "r": 33,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 117.196,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.54582,
    "c": 0.16787,
    "h": 142.3
  },
  "luminance": 0.17735
}

Semantic roles & 50–950 ramp

primary
#21871C
secondary
#B445BA
accent
#3FE9E1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #21871C

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

Preview Lab → · Contrast checker → · Palette generator →

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