Skip to content

#ec2dfe

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

RGB
236, 45, 254
HSL
295°, 99%, 59%
CMYK
7, 82, 0, 0
Luminance
0.2687

Every format

HEX#ec2dfe
RGBrgb(236, 45, 254)
HSLhsl(295, 99%, 59%)
CMYKcmyk(7%, 82%, 0%, 0%)
LABlab(58.9 90.0 -62.8)
LCHlch(58.9 109.7 325.1)
OKLCHoklch(0.685 0.299 324.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec2dfe on white: 3.30:1
AA ✗ fail · AA-large · AAA
Aa
#ec2dfe on black: 6.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green17.6%
Blue99.6%

CMYK percentages

Cyan7.1%
Magenta82.3%
Yellow0.0%
Key (black)0.4%

Color previews

#ec2dfe text on a black background

contrast 6.37:1

Card sample

#ec2dfe text on a white background

contrast 3.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec2dfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec2dfe in the Color Lab