#21AF2A#21AF2A

#21AF2A is a light, highly saturated green. Relative luminance 0.311; OKLCH L 65.8% C 0.205 H 143.4°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#21AF2A
RGBrgb(33, 175, 42)
HSLhsl(124, 68%, 41%)
HSVhsv(124, 81%, 69%)
CMYKcmyk(81.1%, 0%, 76%, 31.4%)
CIE-LABlab(62.63, -60.72, 54.18)
CIE-LCHlch(62.63, 81.38, 138.26°)
OKLaboklab(65.8% -0.1644 0.122)
OKLCHoklch(65.8% 0.205 143.4)
XYZxyz(16.3740, 31.1484, 7.3393)
Luminance0.3115 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21AF2A #AF21A6
analogous
#5FAF21 #21AF2A #21AF71
triadic
#21AF2A #2A21AF #AF2A21
tetradic
#21AF2A #215FAF #AF21A6 #AF7121
square
#21AF2A #215FAF #AF21A6 #AF7121
split-complementary
#21AF2A #7121AF #AF215F
monochromatic
#0E4811 #177C1E #21AF2A #34D93F #68E370

Accessibility & contrast

On white

2.90
#21AF2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#21AF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #21AF2A
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21AF2A#FFFFFF#000000##000000
##21AF2A1.002.907.237.23
#FFFFFF2.901.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E0C
Deuteranopia (green-blind)
#A49339
Tritanopia (blue-blind)
#00AA96
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #21af2a;
/* rgb */ color: rgb(33, 175, 42);
/* oklch */ color: oklch(65.8% 0.205 143.4);
Tailwind
colors: {
  custom: {
    50: '#78c86d',
    500: '#21af2a',
    950: '#000000',
  },
}
SCSS
$custom: #21af2a;
$custom-light: #78c86d;
$custom-dark: #000000;
JSON
{
  "hex": "#21af2a",
  "rgb": {
    "r": 33,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 123.803,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.65802,
    "c": 0.20477,
    "h": 143.4
  },
  "luminance": 0.3115
}

Semantic roles & 50–950 ramp

primary
#21AF2A
secondary
#C864C2
accent
#3DE0EB
background
#F8FCF6
surface
#EFF8EC
border
#CAD1C7
text
#0B1308
muted
#7C827B

Preview Lab

Preview with #21AF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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