#21A242#21A242

#21A242 is a light, vivid green. Relative luminance 0.266; OKLCH L 62.5% C 0.173 H 147.0°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#21A242
RGBrgb(33, 162, 66)
HSLhsl(135, 66%, 38%)
HSVhsv(135, 80%, 64%)
CMYKcmyk(79.6%, 0%, 59.3%, 36.5%)
CIE-LABlab(58.56, -54.03, 39.81)
CIE-LCHlch(58.56, 67.11, 143.62°)
OKLaboklab(62.48% -0.1453 0.0943)
OKLCHoklch(62.48% 0.173 147)
XYZxyz(14.5298, 26.5556, 9.5132)
Luminance0.2656 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21A242 #A22181
analogous
#40A221 #21A242 #21A282
triadic
#21A242 #4221A2 #A24221
tetradic
#21A242 #2140A2 #A22181 #A28221
square
#21A242 #2140A2 #A22181 #A28221
split-complementary
#21A242 #8221A2 #A22140
monochromatic
#0C3C19 #176F2D #21A242 #2CD457 #5FDE80

Accessibility & contrast

On white

3.33
#21A242 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#21A242 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #21A242
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21A242#FFFFFF#000000##000000
##21A2421.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49338
Deuteranopia (green-blind)
#96894A
Tritanopia (blue-blind)
#009E8D
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #21a242;
/* rgb */ color: rgb(33, 162, 66);
/* oklch */ color: oklch(62.5% 0.173 147.0);
Tailwind
colors: {
  custom: {
    50: '#73bf79',
    500: '#21a242',
    950: '#000000',
  },
}
SCSS
$custom: #21a242;
$custom-light: #73bf79;
$custom-dark: #000000;
JSON
{
  "hex": "#21a242",
  "rgb": {
    "r": 33,
    "g": 162,
    "b": 66
  },
  "hsl": {
    "h": 135.349,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.62482,
    "c": 0.17322,
    "h": 147
  },
  "luminance": 0.26557
}

Semantic roles & 50–950 ramp

primary
#21A242
secondary
#C35CA9
accent
#3FBEE9
background
#F7FBF7
surface
#EEF7EE
border
#C9D0C9
text
#091209
muted
#7B817B

Preview Lab

Preview with #21A242

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

Preview Lab → · Contrast checker → · Palette generator →

#21A242 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva