Skip to content

#51ff21

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

RGB
81, 255, 33
HSL
107°, 100%, 57%
CMYK
68, 0, 87, 0
Luminance
0.7338

Every format

HEX#51ff21
RGBrgb(81, 255, 33)
HSLhsl(107, 100%, 57%)
CMYKcmyk(68%, 0%, 87%, 0%)
LABlab(88.6 -78.1 80.6)
LCHlch(88.6 112.2 134.1)
OKLCHoklch(0.876 0.277 140.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#51ff21 on white: 1.34:1
AA ✗ fail · AA-large · AAA
Aa
#51ff21 on black: 15.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.8%
Green100.0%
Blue12.9%

CMYK percentages

Cyan68.2%
Magenta0.0%
Yellow87.1%
Key (black)0.0%

Color previews

#51ff21 text on a black background

contrast 15.68:1

Card sample

#51ff21 text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #51ff21;
Background color
Panel with #51ff21 background
background-color: #51ff21;
Text shadow — hex

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #51ff21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #51ff21 in the Color Lab