#21842C#21842C

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

Color values

HEX#21842C
RGBrgb(33, 132, 44)
HSLhsl(127, 60%, 32%)
HSVhsv(127, 75%, 52%)
CMYKcmyk(75%, 0%, 66.7%, 48.2%)
CIE-LABlab(48.27, -46.35, 38.37)
CIE-LCHlch(48.27, 60.17, 140.38°)
OKLaboklab(53.87% -0.1253 0.0891)
OKLCHoklch(53.87% 0.154 144.6)
XYZxyz(9.3325, 17.0067, 5.1732)
Luminance0.1701 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21842C #842179
analogous
#478421 #21842C #21845E
triadic
#21842C #2C2184 #842C21
tetradic
#21842C #214784 #842179 #845E21
square
#21842C #214784 #842179 #845E21
split-complementary
#21842C #5E2184 #842147
monochromatic
#09220B #15531C #21842C #2DB53C #4DD25C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21842C#FFFFFF#000000##FFFFFF
##21842C1.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)
#867721
Deuteranopia (green-blind)
#7B7034
Tritanopia (blue-blind)
#008072
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #21842c;
/* rgb */ color: rgb(33, 132, 44);
/* oklch */ color: oklch(53.9% 0.154 144.6);
Tailwind
colors: {
  custom: {
    50: '#6da969',
    500: '#21842c',
    950: '#000000',
  },
}
SCSS
$custom: #21842c;
$custom-light: #6da969;
$custom-dark: #000000;
JSON
{
  "hex": "#21842c",
  "rgb": {
    "r": 33,
    "g": 132,
    "b": 44
  },
  "hsl": {
    "h": 126.667,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.53871,
    "c": 0.15375,
    "h": 144.6
  },
  "luminance": 0.17008
}

Semantic roles & 50–950 ramp

primary
#21842C
secondary
#B64BAA
accent
#45D2E3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #21842C

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

Preview Lab → · Contrast checker → · Palette generator →

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