Skip to content

#ec1dfd

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

RGB
236, 29, 253
HSL
295°, 98%, 55%
CMYK
7, 89, 0, 1
Luminance
0.2580

Every format

HEX#ec1dfd
RGBrgb(236, 29, 253)
HSLhsl(295, 98%, 55%)
CMYKcmyk(7%, 89%, 0%, 1%)
LABlab(57.9 92.6 -63.9)
LCHlch(57.9 112.5 325.4)
OKLCHoklch(0.678 0.307 324.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec1dfd on white: 3.41:1
AA ✗ fail · AA-large · AAA
Aa
#ec1dfd on black: 6.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green11.4%
Blue99.2%

CMYK percentages

Cyan6.7%
Magenta88.5%
Yellow0.0%
Key (black)0.8%

Color previews

#ec1dfd text on a black background

contrast 6.16:1

Card sample

#ec1dfd text on a white background

contrast 3.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec1dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec1dfd in the Color Lab