#21A838#21A838

#21A838 is a light, vivid green. Relative luminance 0.286; OKLCH L 64.0% C 0.188 H 145.1°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#21A838
RGBrgb(33, 168, 56)
HSLhsl(130, 67%, 39%)
HSVhsv(130, 80%, 66%)
CMYKcmyk(80.4%, 0%, 66.7%, 34.1%)
CIE-LABlab(60.44, -57.23, 46.46)
CIE-LCHlch(60.44, 73.72, 140.93°)
OKLaboklab(64.01% -0.1543 0.1076)
OKLCHoklch(64.01% 0.188 145.1)
XYZxyz(15.3425, 28.6123, 8.4547)
Luminance0.2861 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21A838 #A82191
analogous
#4EA821 #21A838 #21A87C
triadic
#21A838 #3821A8 #A83821
tetradic
#21A838 #214EA8 #A82191 #A87C21
square
#21A838 #214EA8 #A82191 #A87C21
split-complementary
#21A838 #7C21A8 #A8214E
monochromatic
#0D4216 #177527 #21A838 #30D64C #63E078

Accessibility & contrast

On white

3.12
#21A838 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#21A838 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #21A838
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21A838#FFFFFF#000000##000000
##21A8381.003.126.726.72
#FFFFFF3.121.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB982A
Deuteranopia (green-blind)
#9C8E42
Tritanopia (blue-blind)
#00A491
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #21a838;
/* rgb */ color: rgb(33, 168, 56);
/* oklch */ color: oklch(64.0% 0.188 145.1);
Tailwind
colors: {
  custom: {
    50: '#75c374',
    500: '#21a838',
    950: '#000000',
  },
}
SCSS
$custom: #21a838;
$custom-light: #75c374;
$custom-dark: #000000;
JSON
{
  "hex": "#21a838",
  "rgb": {
    "r": 33,
    "g": 168,
    "b": 56
  },
  "hsl": {
    "h": 130.222,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.64009,
    "c": 0.18813,
    "h": 145.1
  },
  "luminance": 0.28614
}

Semantic roles & 50–950 ramp

primary
#21A838
secondary
#C55FB4
accent
#3ECDEA
background
#F7FCF7
surface
#EEF8ED
border
#C9D1C8
text
#0A1308
muted
#7C827B

Preview Lab

Preview with #21A838

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

Preview Lab → · Contrast checker → · Palette generator →

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