#21871A#21871A

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

Color values

HEX#21871A
RGBrgb(33, 135, 26)
HSLhsl(116, 68%, 32%)
HSVhsv(116, 81%, 53%)
CMYKcmyk(75.6%, 0%, 80.7%, 47.1%)
CIE-LABlab(49.16, -49.01, 46.43)
CIE-LCHlch(49.16, 67.51, 136.55°)
OKLaboklab(54.57% -0.1334 0.1036)
OKLCHoklch(54.57% 0.169 142.2)
XYZxyz(9.4771, 17.7248, 3.8988)
Luminance0.1773 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21871A #801A87
analogous
#58871A #21871A #1A874A
triadic
#21871A #1A2187 #871A21
tetradic
#21871A #1A5887 #801A87 #874A1A
square
#21871A #1A5887 #801A87 #874A1A
split-complementary
#21871A #4A1A87 #871A58
monochromatic
#082006 #145410 #21871A #2EBA24 #4BDA41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21871A#FFFFFF#000000##FFFFFF
##21871A1.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)
#8A7A00
Deuteranopia (green-blind)
#7F7227
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #21871a;
/* rgb */ color: rgb(33, 135, 26);
/* oklch */ color: oklch(54.6% 0.169 142.2);
Tailwind
colors: {
  custom: {
    50: '#6eab60',
    500: '#21871a',
    950: '#000000',
  },
}
SCSS
$custom: #21871a;
$custom-light: #6eab60;
$custom-dark: #000000;
JSON
{
  "hex": "#21871a",
  "rgb": {
    "r": 33,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 116.147,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54569,
    "c": 0.16891,
    "h": 142.2
  },
  "luminance": 0.17726
}

Semantic roles & 50–950 ramp

primary
#21871A
secondary
#B342BA
accent
#3DEBDF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #21871A

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

Preview Lab → · Contrast checker → · Palette generator →

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