Skip to content

#e52df2

a balanced, electric magenta / pink · warm · closest name: magenta

RGB
229, 45, 242
HSL
296°, 88%, 56%
CMYK
5, 81, 0, 5
Luminance
0.2495

Every format

HEX#e52df2
RGBrgb(229, 45, 242)
HSLhsl(296, 88%, 56%)
CMYKcmyk(5%, 81%, 0%, 5%)
LABlab(57.0 86.9 -59.1)
LCHlch(57.0 105.1 325.8)
OKLCHoklch(0.668 0.288 325.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#e52df2 on white: 3.51:1
AA ✗ fail · AA-large · AAA
Aa
#e52df2 on black: 5.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red89.8%
Green17.6%
Blue94.9%

CMYK percentages

Cyan5.4%
Magenta81.4%
Yellow0.0%
Key (black)5.1%

Color previews

#e52df2 text on a black background

contrast 5.99:1

Card sample

#e52df2 text on a white background

contrast 3.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(229, 45, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(229, 45, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #e52df2;
background: linear-gradient(135deg, #e52df2, #F22D7C);

Monochromatic scale

Palettes built from #e52df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #e52df2 in the Color Lab