#21871B#21871B

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

Color values

HEX#21871B
RGBrgb(33, 135, 27)
HSLhsl(117, 67%, 32%)
HSVhsv(117, 80%, 53%)
CMYKcmyk(75.6%, 0%, 80%, 47.1%)
CIE-LABlab(49.17, -48.94, 46.10)
CIE-LCHlch(49.17, 67.23, 136.71°)
OKLaboklab(54.58% -0.1331 0.1031)
OKLCHoklch(54.58% 0.168 142.2)
XYZxyz(9.4884, 17.7293, 3.9587)
Luminance0.1773 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21871B #811B87
analogous
#57871B #21871B #1B874B
triadic
#21871B #1B2187 #871B21
tetradic
#21871B #1B5787 #811B87 #874B1B
square
#21871B #1B5787 #811B87 #874B1B
split-complementary
#21871B #4B1B87 #871B57
monochromatic
#082107 #155411 #21871B #2DBA25 #4BD943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21871B#FFFFFF#000000##FFFFFF
##21871B1.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)
#7F7228
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #21871b;
/* rgb */ color: rgb(33, 135, 27);
/* oklch */ color: oklch(54.6% 0.168 142.2);
Tailwind
colors: {
  custom: {
    50: '#6eab60',
    500: '#21871b',
    950: '#000000',
  },
}
SCSS
$custom: #21871b;
$custom-light: #6eab60;
$custom-dark: #000000;
JSON
{
  "hex": "#21871b",
  "rgb": {
    "r": 33,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 116.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54575,
    "c": 0.1684,
    "h": 142.2
  },
  "luminance": 0.1773
}

Semantic roles & 50–950 ramp

primary
#21871B
secondary
#B444BA
accent
#3EEAE0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #21871B

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

Preview Lab → · Contrast checker → · Palette generator →

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