#21A040#21A040

#21A040 is a mid, vivid green. Relative luminance 0.258; OKLCH L 61.9% C 0.172 H 146.8°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#21A040
RGBrgb(33, 160, 64)
HSLhsl(135, 66%, 38%)
HSVhsv(135, 79%, 63%)
CMYKcmyk(79.4%, 0%, 60%, 37.3%)
CIE-LABlab(57.88, -53.62, 39.96)
CIE-LCHlch(57.88, 66.87, 143.30°)
OKLaboklab(61.91% -0.1442 0.0944)
OKLCHoklch(61.91% 0.172 146.8)
XYZxyz(14.1223, 25.8334, 9.0915)
Luminance0.2584 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21A040 #A02181
analogous
#41A021 #21A040 #21A080
triadic
#21A040 #4021A0 #A04021
tetradic
#21A040 #2141A0 #A02181 #A08021
square
#21A040 #2141A0 #A02181 #A08021
split-complementary
#21A040 #8021A0 #A02141
monochromatic
#0C3B17 #176D2C #21A040 #2BD354 #5EDE7D

Accessibility & contrast

On white

3.41
#21A040 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#21A040 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #21A040
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21A040#FFFFFF#000000##000000
##21A0401.003.416.176.17
#FFFFFF3.411.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A29136
Deuteranopia (green-blind)
#948748
Tritanopia (blue-blind)
#009C8B
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #21a040;
/* rgb */ color: rgb(33, 160, 64);
/* oklch */ color: oklch(61.9% 0.172 146.8);
Tailwind
colors: {
  custom: {
    50: '#73bd78',
    500: '#21a040',
    950: '#000000',
  },
}
SCSS
$custom: #21a040;
$custom-light: #73bd78;
$custom-dark: #000000;
JSON
{
  "hex": "#21a040",
  "rgb": {
    "r": 33,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 134.646,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.61909,
    "c": 0.17242,
    "h": 146.8
  },
  "luminance": 0.25835
}

Semantic roles & 50–950 ramp

primary
#21A040
secondary
#C25BA9
accent
#3FBFE9
background
#F7FBF7
surface
#EEF7ED
border
#C9D0C8
text
#091209
muted
#7B817B

Preview Lab

Preview with #21A040

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

Preview Lab → · Contrast checker → · Palette generator →

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