Skip to content

#ec5df6

a light, electric magenta / pink · warm · closest name: violet

RGB
236, 93, 246
HSL
296°, 90%, 67%
CMYK
4, 62, 0, 4
Luminance
0.3232

Every format

HEX#ec5df6
RGBrgb(236, 93, 246)
HSLhsl(296, 90%, 67%)
CMYKcmyk(4%, 62%, 0%, 4%)
LABlab(63.6 73.9 -50.8)
LCHlch(63.6 89.7 325.5)
OKLCHoklch(0.718 0.246 325.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec5df6 on white: 2.81:1
AA ✗ fail · AA-large · AAA
Aa
#ec5df6 on black: 7.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green36.5%
Blue96.5%

CMYK percentages

Cyan4.1%
Magenta62.2%
Yellow0.0%
Key (black)3.5%

Color previews

#ec5df6 text on a black background

contrast 7.46:1

Card sample

#ec5df6 text on a white background

contrast 2.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec5df6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec5df6 in the Color Lab