Skip to content

#ec2cfd

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

RGB
236, 44, 253
HSL
295°, 98%, 58%
CMYK
7, 83, 0, 1
Luminance
0.2673

Every format

HEX#ec2cfd
RGBrgb(236, 44, 253)
HSLhsl(295, 98%, 58%)
CMYKcmyk(7%, 83%, 0%, 1%)
LABlab(58.7 90.0 -62.5)
LCHlch(58.7 109.6 325.2)
OKLCHoklch(0.684 0.299 324.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec2cfd on white: 3.31:1
AA ✗ fail · AA-large · AAA
Aa
#ec2cfd on black: 6.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green17.3%
Blue99.2%

CMYK percentages

Cyan6.7%
Magenta82.6%
Yellow0.0%
Key (black)0.8%

Color previews

#ec2cfd text on a black background

contrast 6.35:1

Card sample

#ec2cfd text on a white background

contrast 3.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec2cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec2cfd in the Color Lab