Skip to content

#ec1aff

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

RGB
236, 26, 255
HSL
295°, 100%, 55%
CMYK
8, 90, 0, 0
Luminance
0.2579

Every format

HEX#ec1aff
RGBrgb(236, 26, 255)
HSLhsl(295, 100%, 55%)
CMYKcmyk(8%, 90%, 0%, 0%)
LABlab(57.8 93.3 -65.0)
LCHlch(57.8 113.7 325.1)
OKLCHoklch(0.678 0.310 324.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green10.2%
Blue100.0%

CMYK percentages

Cyan7.5%
Magenta89.8%
Yellow0.0%
Key (black)0.0%

Color previews

#ec1aff text on a black background

contrast 6.16:1

Card sample

#ec1aff text on a white background

contrast 3.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec1aff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec1aff in the Color Lab