Skip to content

#ec0dfd

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

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

Every format

HEX#ec0dfd
RGBrgb(236, 13, 253)
HSLhsl(296, 98%, 52%)
CMYKcmyk(7%, 95%, 0%, 1%)
LABlab(57.3 94.3 -64.8)
LCHlch(57.3 114.4 325.5)
OKLCHoklch(0.674 0.312 324.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green5.1%
Blue99.2%

CMYK percentages

Cyan6.7%
Magenta94.9%
Yellow0.0%
Key (black)0.8%

Color previews

#ec0dfd text on a black background

contrast 6.04:1

Card sample

#ec0dfd text on a white background

contrast 3.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec0dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec0dfd in the Color Lab