#21873B#21873B

#21873B is a mid, vivid green. Relative luminance 0.180; OKLCH L 54.9% C 0.145 H 147.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#21873B
RGBrgb(33, 135, 59)
HSLhsl(135, 61%, 33%)
HSVhsv(135, 76%, 53%)
CMYKcmyk(75.6%, 0%, 56.3%, 47.1%)
CIE-LABlab(49.45, -45.46, 32.45)
CIE-LCHlch(49.45, 55.86, 144.48°)
OKLaboklab(54.91% -0.1224 0.0777)
OKLCHoklch(54.91% 0.145 147.6)
XYZxyz(10.0798, 17.9659, 7.0734)
Luminance0.1797 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21873B #87216D
analogous
#3A8721 #21873B #21876E
triadic
#21873B #3B2187 #873B21
tetradic
#21873B #213A87 #87216D #876E21
square
#21873B #213A87 #87216D #876E21
split-complementary
#21873B #6E2187 #87213A
monochromatic
#092510 #155626 #21873B #2DB850 #4FD471

Accessibility & contrast

On white

4.57
#21873B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#21873B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #21873B
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21873B#FFFFFF#000000##000000
##21873B1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#897B34
Deuteranopia (green-blind)
#7D7241
Tritanopia (blue-blind)
#008476
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #21873b;
/* rgb */ color: rgb(33, 135, 59);
/* oklch */ color: oklch(54.9% 0.145 147.6);
Tailwind
colors: {
  custom: {
    50: '#6dab73',
    500: '#21873b',
    950: '#000000',
  },
}
SCSS
$custom: #21873b;
$custom-light: #6dab73;
$custom-dark: #000000;
JSON
{
  "hex": "#21873b",
  "rgb": {
    "r": 33,
    "g": 135,
    "b": 59
  },
  "hsl": {
    "h": 135.294,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.54908,
    "c": 0.14494,
    "h": 147.6
  },
  "luminance": 0.17967
}

Semantic roles & 50–950 ramp

primary
#21873B
secondary
#B74D9C
accent
#44BBE4
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #21873B

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

Preview Lab → · Contrast checker → · Palette generator →

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