Skip to content

#ec0cfd

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

RGB
236, 12, 253
HSL
296°, 98%, 52%
CMYK
7, 95, 0, 1
Luminance
0.2519

Every format

HEX#ec0cfd
RGBrgb(236, 12, 253)
HSLhsl(296, 98%, 52%)
CMYKcmyk(7%, 95%, 0%, 1%)
LABlab(57.3 94.3 -64.8)
LCHlch(57.3 114.5 325.5)
OKLCHoklch(0.674 0.313 324.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green4.7%
Blue99.2%

CMYK percentages

Cyan6.7%
Magenta95.3%
Yellow0.0%
Key (black)0.8%

Color previews

#ec0cfd text on a black background

contrast 6.04:1

Card sample

#ec0cfd text on a white background

contrast 3.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec0cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec0cfd in the Color Lab