#21842A#21842A

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

Color values

HEX#21842A
RGBrgb(33, 132, 42)
HSLhsl(125, 60%, 32%)
HSVhsv(125, 75%, 52%)
CMYKcmyk(75%, 0%, 68.2%, 48.2%)
CIE-LABlab(48.25, -46.57, 39.25)
CIE-LCHlch(48.25, 60.91, 139.88°)
OKLaboklab(53.85% -0.126 0.0908)
OKLCHoklch(53.85% 0.155 144.2)
XYZxyz(9.2958, 16.9920, 4.9799)
Luminance0.1699 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21842A #84217B
analogous
#498421 #21842A #21845C
triadic
#21842A #2A2184 #842A21
tetradic
#21842A #214984 #84217B #845C21
square
#21842A #214984 #84217B #845C21
split-complementary
#21842A #5C2184 #842149
monochromatic
#09220B #15531A #21842A #2DB53A #4DD259

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21842A#FFFFFF#000000##FFFFFF
##21842A1.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)
#87771E
Deuteranopia (green-blind)
#7B7032
Tritanopia (blue-blind)
#008071
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #21842a;
/* rgb */ color: rgb(33, 132, 42);
/* oklch */ color: oklch(53.8% 0.155 144.2);
Tailwind
colors: {
  custom: {
    50: '#6da968',
    500: '#21842a',
    950: '#000000',
  },
}
SCSS
$custom: #21842a;
$custom-light: #6da968;
$custom-dark: #000000;
JSON
{
  "hex": "#21842a",
  "rgb": {
    "r": 33,
    "g": 132,
    "b": 42
  },
  "hsl": {
    "h": 125.455,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5385,
    "c": 0.15528,
    "h": 144.2
  },
  "luminance": 0.16993
}

Semantic roles & 50–950 ramp

primary
#21842A
secondary
#B64BAC
accent
#45D5E3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #21842A

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

Preview Lab → · Contrast checker → · Palette generator →

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