Skip to content

#ec0fc2

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

RGB
236, 15, 194
HSL
311°, 88%, 49%
CMYK
0, 94, 18, 8
Luminance
0.2207

Every format

HEX#ec0fc2
RGBrgb(236, 15, 194)
HSLhsl(311, 88%, 49%)
CMYKcmyk(0%, 94%, 18%, 8%)
LABlab(54.1 86.1 -36.4)
LCHlch(54.1 93.5 337.1)
OKLCHoklch(0.641 0.275 338.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec0fc2 on white: 3.88:1
AA ✗ fail · AA-large · AAA
Aa
#ec0fc2 on black: 5.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green5.9%
Blue76.1%

CMYK percentages

Cyan0.0%
Magenta93.6%
Yellow17.8%
Key (black)7.5%

Color previews

#ec0fc2 text on a black background

contrast 5.41:1

Card sample

#ec0fc2 text on a white background

contrast 3.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec0fc2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec0fc2 in the Color Lab