#21842B#21842B

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

Color values

HEX#21842B
RGBrgb(33, 132, 43)
HSLhsl(126, 60%, 32%)
HSVhsv(126, 75%, 52%)
CMYKcmyk(75%, 0%, 67.4%, 48.2%)
CIE-LABlab(48.26, -46.46, 38.81)
CIE-LCHlch(48.26, 60.54, 140.13°)
OKLaboklab(53.86% -0.1256 0.09)
OKLCHoklch(53.86% 0.155 144.4)
XYZxyz(9.3139, 16.9992, 5.0754)
Luminance0.1700 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21842B #84217A
analogous
#488421 #21842B #21845D
triadic
#21842B #2B2184 #842B21
tetradic
#21842B #214884 #84217A #845D21
square
#21842B #214884 #84217A #845D21
split-complementary
#21842B #5D2184 #842148
monochromatic
#09220B #15531B #21842B #2DB53B #4DD25A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21842B#FFFFFF#000000##FFFFFF
##21842B1.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)
#867720
Deuteranopia (green-blind)
#7B7033
Tritanopia (blue-blind)
#008072
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #21842b;
/* rgb */ color: rgb(33, 132, 43);
/* oklch */ color: oklch(53.9% 0.155 144.4);
Tailwind
colors: {
  custom: {
    50: '#6da969',
    500: '#21842b',
    950: '#000000',
  },
}
SCSS
$custom: #21842b;
$custom-light: #6da969;
$custom-dark: #000000;
JSON
{
  "hex": "#21842b",
  "rgb": {
    "r": 33,
    "g": 132,
    "b": 43
  },
  "hsl": {
    "h": 126.061,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5386,
    "c": 0.15452,
    "h": 144.4
  },
  "luminance": 0.17
}

Semantic roles & 50–950 ramp

primary
#21842B
secondary
#B64BAB
accent
#45D3E3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #21842B

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

Preview Lab → · Contrast checker → · Palette generator →

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