Skip to content

#21ab21

a dark, vivid green · cool · closest name: green

RGB
33, 171, 33
HSL
120°, 68%, 40%
CMYK
81, 0, 81, 33
Luminance
0.2956

Every format

HEX#21ab21
RGBrgb(33, 171, 33)
HSLhsl(120, 68%, 40%)
CMYKcmyk(81%, 0%, 81%, 33%)
LABlab(61.3 -60.1 55.8)
LCHlch(61.3 82.0 137.2)
OKLCHoklch(0.646 0.205 142.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#21ab21 on white: 3.04:1
AA ✗ fail · AA-large · AAA
Aa
#21ab21 on black: 6.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.9%
Green67.1%
Blue12.9%

CMYK percentages

Cyan80.7%
Magenta0.0%
Yellow80.7%
Key (black)32.9%

Color previews

#21ab21 text on a black background

contrast 6.91:1

Card sample

#21ab21 text on a white background

contrast 3.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #21ab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #21ab21 in the Color Lab