Skip to content

#51ec7f

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

RGB
81, 236, 127
HSL
138°, 80%, 62%
CMYK
66, 0, 46, 8
Luminance
0.6327

Every format

HEX#51ec7f
RGBrgb(81, 236, 127)
HSLhsl(138, 80%, 62%)
CMYKcmyk(66%, 0%, 46%, 8%)
LABlab(83.6 -63.5 41.1)
LCHlch(83.6 75.6 147.1)
OKLCHoklch(0.837 0.198 149.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#51ec7f on white: 1.54:1
AA ✗ fail · AA-large · AAA
Aa
#51ec7f on black: 13.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.8%
Green92.5%
Blue49.8%

CMYK percentages

Cyan65.7%
Magenta0.0%
Yellow46.2%
Key (black)7.5%

Color previews

#51ec7f text on a black background

contrast 13.65:1

Card sample

#51ec7f text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(81, 236, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 236, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #51ec7f;
background: linear-gradient(135deg, #51ec7f, #51ECE6);

Monochromatic scale

Palettes built from #51ec7f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #51ec7f in the Color Lab