Skip to content

#ec2fdf

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

RGB
236, 47, 223
HSL
304°, 83%, 56%
CMYK
0, 80, 6, 8
Luminance
0.2519

Every format

HEX#ec2fdf
RGBrgb(236, 47, 223)
HSLhsl(304, 83%, 56%)
CMYKcmyk(0%, 80%, 6%, 8%)
LABlab(57.3 84.9 -48.0)
LCHlch(57.3 97.5 330.5)
OKLCHoklch(0.668 0.277 331.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec2fdf on white: 3.48:1
AA ✗ fail · AA-large · AAA
Aa
#ec2fdf on black: 6.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green18.4%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta80.1%
Yellow5.5%
Key (black)7.5%

Color previews

#ec2fdf text on a black background

contrast 6.04:1

Card sample

#ec2fdf text on a white background

contrast 3.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec2fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec2fdf in the Color Lab