Skip to content

#4afc21

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

RGB
74, 252, 33
HSL
109°, 97%, 56%
CMYK
71, 0, 87, 1
Luminance
0.7119

Every format

HEX#4afc21
RGBrgb(74, 252, 33)
HSLhsl(109, 97%, 56%)
CMYKcmyk(71%, 0%, 87%, 1%)
LABlab(87.6 -78.4 79.6)
LCHlch(87.6 111.8 134.6)
OKLCHoklch(0.867 0.276 140.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4afc21 on white: 1.38:1
AA ✗ fail · AA-large · AAA
Aa
#4afc21 on black: 15.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red29.0%
Green98.8%
Blue12.9%

CMYK percentages

Cyan70.6%
Magenta0.0%
Yellow86.9%
Key (black)1.2%

Color previews

#4afc21 text on a black background

contrast 15.24:1

Card sample

#4afc21 text on a white background

contrast 1.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4afc21;
Background color
Panel with #4afc21 background
background-color: #4afc21;
Text shadow — hex

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4afc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4afc21 in the Color Lab