#21C228#21C228

#21C228 is a light, highly saturated green. Relative luminance 0.391; OKLCH L 70.9% C 0.226 H 143.1°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#21C228
RGBrgb(33, 194, 40)
HSLhsl(123, 71%, 45%)
HSVhsv(123, 83%, 76%)
CMYKcmyk(83%, 0%, 79.4%, 23.9%)
CIE-LABlab(68.79, -66.61, 60.80)
CIE-LCHlch(68.79, 90.18, 137.61°)
OKLaboklab(70.93% -0.1805 0.1356)
OKLCHoklch(70.93% 0.226 143.1)
XYZxyz(20.3007, 39.0576, 8.4760)
Luminance0.3906 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21C228 #C221BB
analogous
#6AC221 #21C228 #21C279
triadic
#21C228 #2821C2 #C22821
tetradic
#21C228 #216AC2 #C221BB #C27921
square
#21C228 #216AC2 #C221BB #C27921
split-complementary
#21C228 #7921C2 #C2216A
monochromatic
#0F5912 #188E1D #21C228 #41DF48 #76E87B

Accessibility & contrast

On white

2.38
#21C228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.81
#21C228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #21C228
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21C228#FFFFFF#000000##000000
##21C2281.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF00
Deuteranopia (green-blind)
#B6A33B
Tritanopia (blue-blind)
#00BCA6
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #21c228;
/* rgb */ color: rgb(33, 194, 40);
/* oklch */ color: oklch(70.9% 0.226 143.1);
Tailwind
colors: {
  custom: {
    50: '#7dd66f',
    500: '#21c228',
    950: '#000000',
  },
}
SCSS
$custom: #21c228;
$custom-light: #7dd66f;
$custom-dark: #000000;
JSON
{
  "hex": "#21c228",
  "rgb": {
    "r": 33,
    "g": 194,
    "b": 40
  },
  "hsl": {
    "h": 122.609,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.70926,
    "c": 0.22575,
    "h": 143.1
  },
  "luminance": 0.3906
}

Semantic roles & 50–950 ramp

primary
#21C228
secondary
#CF70CB
accent
#3AE6EE
background
#F8FDF7
surface
#F0FAED
border
#CBD3C8
text
#0C1408
muted
#7D837B

Preview Lab

Preview with #21C228

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

Preview Lab → · Contrast checker → · Palette generator →

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