Skip to content

#ec0df2

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

RGB
236, 13, 242
HSL
298°, 90%, 50%
CMYK
3, 95, 0, 5
Luminance
0.2453

Every format

HEX#ec0df2
RGBrgb(236, 13, 242)
HSLhsl(298, 90%, 50%)
CMYKcmyk(3%, 95%, 0%, 5%)
LABlab(56.6 92.7 -59.7)
LCHlch(56.6 110.2 327.2)
OKLCHoklch(0.667 0.305 327.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec0df2 on white: 3.56:1
AA ✗ fail · AA-large · AAA
Aa
#ec0df2 on black: 5.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green5.1%
Blue94.9%

CMYK percentages

Cyan2.5%
Magenta94.6%
Yellow0.0%
Key (black)5.1%

Color previews

#ec0df2 text on a black background

contrast 5.91:1

Card sample

#ec0df2 text on a white background

contrast 3.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec0df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec0df2 in the Color Lab