#21AF2B#21AF2B

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

Color values

HEX#21AF2B
RGBrgb(33, 175, 43)
HSLhsl(124, 68%, 41%)
HSVhsv(124, 81%, 69%)
CMYKcmyk(81.1%, 0%, 75.4%, 31.4%)
CIE-LABlab(62.64, -60.65, 53.84)
CIE-LCHlch(62.64, 81.10, 138.40°)
OKLaboklab(65.81% -0.1642 0.1215)
OKLCHoklch(65.81% 0.204 143.5)
XYZxyz(16.3921, 31.1557, 7.4348)
Luminance0.3116 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21AF2B #AF21A5
analogous
#5EAF21 #21AF2B #21AF72
triadic
#21AF2B #2B21AF #AF2B21
tetradic
#21AF2B #215EAF #AF21A5 #AF7221
square
#21AF2B #215EAF #AF21A5 #AF7221
split-complementary
#21AF2B #7221AF #AF215E
monochromatic
#0E4812 #177C1E #21AF2B #34D940 #68E371

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21AF2B#FFFFFF#000000##000000
##21AF2B1.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)
#B39E0F
Deuteranopia (green-blind)
#A4933A
Tritanopia (blue-blind)
#00AA96
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #21af2b;
/* rgb */ color: rgb(33, 175, 43);
/* oklch */ color: oklch(65.8% 0.204 143.5);
Tailwind
colors: {
  custom: {
    50: '#78c86d',
    500: '#21af2b',
    950: '#000000',
  },
}
SCSS
$custom: #21af2b;
$custom-light: #78c86d;
$custom-dark: #000000;
JSON
{
  "hex": "#21af2b",
  "rgb": {
    "r": 33,
    "g": 175,
    "b": 43
  },
  "hsl": {
    "h": 124.225,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.65809,
    "c": 0.20422,
    "h": 143.5
  },
  "luminance": 0.31158
}

Semantic roles & 50–950 ramp

primary
#21AF2B
secondary
#C864C1
accent
#3DDFEB
background
#F8FCF6
surface
#EFF8EC
border
#CAD1C7
text
#0B1308
muted
#7C827B

Preview Lab

Preview with #21AF2B

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

Preview Lab → · Contrast checker → · Palette generator →

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