Skip to content

#21cb21

a balanced, vivid green · cool · closest name: lime

RGB
33, 203, 33
HSL
120°, 72%, 46%
CMYK
84, 0, 84, 20
Luminance
0.4315

Every format

HEX#21cb21
RGBrgb(33, 203, 33)
HSLhsl(120, 72%, 46%)
CMYKcmyk(84%, 0%, 84%, 20%)
LABlab(71.7 -69.6 65.3)
LCHlch(71.7 95.5 136.8)
OKLCHoklch(0.733 0.238 142.7)

Copy-ready code

/* CSS */
color: #21cb21;
background-color: #21cb21;
/* Tailwind (arbitrary) */
class="text-[#21cb21] bg-[#21cb21]"
/* SCSS */
$brand: #21cb21;
/* SwiftUI */
Color(red: 0.129, green: 0.796, blue: 0.129)
/* Android */
Color.parseColor("#21cb21")

Accessibility — WCAG contrast

Aa
#21cb21 on white: 2.18:1
AA ✗ fail · AA-large · AAA
Aa
#21cb21 on black: 9.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.9%
Green79.6%
Blue12.9%

CMYK percentages

Cyan83.7%
Magenta0.0%
Yellow83.7%
Key (black)20.4%

Color previews

#21cb21 text on a black background

contrast 9.63:1

Card sample

#21cb21 text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #21cb21;
Background color
Panel with #21cb21 background
background-color: #21cb21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #21cb21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(33, 203, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(33, 203, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #21cb21;
background: linear-gradient(135deg, #21cb21, #21CB92);

Monochromatic scale

Palettes built from #21cb21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #21cb21 in the Color Lab