#21AF45#21AF45

#21AF45 is a light, vivid green. Relative luminance 0.314; OKLCH L 66.1% C 0.187 H 146.8°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#21AF45
RGBrgb(33, 175, 69)
HSLhsl(135, 68%, 41%)
HSVhsv(135, 81%, 69%)
CMYKcmyk(81.1%, 0%, 60.6%, 31.4%)
CIE-LABlab(62.85, -58.01, 43.39)
CIE-LCHlch(62.85, 72.44, 143.20°)
OKLaboklab(66.05% -0.156 0.1023)
OKLCHoklch(66.05% 0.187 146.8)
XYZxyz(17.0300, 31.4109, 10.7944)
Luminance0.3141 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21AF45 #AF218B
analogous
#44AF21 #21AF45 #21AF8C
triadic
#21AF45 #4521AF #AF4521
tetradic
#21AF45 #2144AF #AF218B #AF8C21
square
#21AF45 #2144AF #AF218B #AF8C21
split-complementary
#21AF45 #8C21AF #AF2144
monochromatic
#0E481C #177C31 #21AF45 #34D95E #68E387

Accessibility & contrast

On white

2.88
#21AF45 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#21AF45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #21AF45
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21AF45#FFFFFF#000000##000000
##21AF451.002.887.287.28
#FFFFFF2.881.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19F3A
Deuteranopia (green-blind)
#A2944E
Tritanopia (blue-blind)
#00AB98
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #21af45;
/* rgb */ color: rgb(33, 175, 69);
/* oklch */ color: oklch(66.1% 0.187 146.8);
Tailwind
colors: {
  custom: {
    50: '#76c87c',
    500: '#21af45',
    950: '#000000',
  },
}
SCSS
$custom: #21af45;
$custom-light: #76c87c;
$custom-dark: #000000;
JSON
{
  "hex": "#21af45",
  "rgb": {
    "r": 33,
    "g": 175,
    "b": 69
  },
  "hsl": {
    "h": 135.211,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.66055,
    "c": 0.18653,
    "h": 146.8
  },
  "luminance": 0.31413
}

Semantic roles & 50–950 ramp

primary
#21AF45
secondary
#C864AF
accent
#3DBFEB
background
#F7FCF7
surface
#EEF8EE
border
#C9D1C9
text
#0A130A
muted
#7C827C

Preview Lab

Preview with #21AF45

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

Preview Lab → · Contrast checker → · Palette generator →

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