Skip to content

#2acc21

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

RGB
42, 204, 33
HSL
117°, 72%, 47%
CMYK
79, 0, 84, 20
Luminance
0.4379

Every format

HEX#2acc21
RGBrgb(42, 204, 33)
HSLhsl(117, 72%, 47%)
CMYKcmyk(79%, 0%, 84%, 20%)
LABlab(72.1 -68.9 65.8)
LCHlch(72.1 95.3 136.3)
OKLCHoklch(0.737 0.237 142.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2acc21 on white: 2.15:1
AA ✗ fail · AA-large · AAA
Aa
#2acc21 on black: 9.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green80.0%
Blue12.9%

CMYK percentages

Cyan79.4%
Magenta0.0%
Yellow83.8%
Key (black)20.0%

Color previews

#2acc21 text on a black background

contrast 9.76:1

Card sample

#2acc21 text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2acc21;
Background color
Panel with #2acc21 background
background-color: #2acc21;
Text shadow — hex

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2acc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2acc21 in the Color Lab