#21842D#21842D

#21842D is a mid, vivid green. Relative luminance 0.170; OKLCH L 53.9% C 0.153 H 144.8°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#21842D
RGBrgb(33, 132, 45)
HSLhsl(127, 60%, 32%)
HSVhsv(127, 75%, 52%)
CMYKcmyk(75%, 0%, 65.9%, 48.2%)
CIE-LABlab(48.28, -46.23, 37.92)
CIE-LCHlch(48.28, 59.80, 140.64°)
OKLaboklab(53.88% -0.1249 0.0883)
OKLCHoklch(53.88% 0.153 144.8)
XYZxyz(9.3515, 17.0143, 5.2734)
Luminance0.1701 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21842D #842178
analogous
#468421 #21842D #21845F
triadic
#21842D #2D2184 #842D21
tetradic
#21842D #214684 #842178 #845F21
square
#21842D #214684 #842178 #845F21
split-complementary
#21842D #5F2184 #842146
monochromatic
#09220C #15531C #21842D #2DB53E #4DD25D

Accessibility & contrast

On white

4.77
#21842D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#21842D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21842D
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21842D#FFFFFF#000000##FFFFFF
##21842D1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867723
Deuteranopia (green-blind)
#7B7035
Tritanopia (blue-blind)
#008072
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #21842d;
/* rgb */ color: rgb(33, 132, 45);
/* oklch */ color: oklch(53.9% 0.153 144.8);
Tailwind
colors: {
  custom: {
    50: '#6da96a',
    500: '#21842d',
    950: '#000000',
  },
}
SCSS
$custom: #21842d;
$custom-light: #6da96a;
$custom-dark: #000000;
JSON
{
  "hex": "#21842d",
  "rgb": {
    "r": 33,
    "g": 132,
    "b": 45
  },
  "hsl": {
    "h": 127.273,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.53882,
    "c": 0.15297,
    "h": 144.8
  },
  "luminance": 0.17015
}

Semantic roles & 50–950 ramp

primary
#21842D
secondary
#B64BA9
accent
#45D0E3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #21842D

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

Preview Lab → · Contrast checker → · Palette generator →

#21842D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva