Skip to content

#ec4af4

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

RGB
236, 74, 244
HSL
297°, 89%, 62%
CMYK
3, 70, 0, 4
Luminance
0.2926

Every format

HEX#ec4af4
RGBrgb(236, 74, 244)
HSLhsl(297, 89%, 62%)
CMYKcmyk(3%, 70%, 0%, 4%)
LABlab(61.0 80.5 -53.8)
LCHlch(61.0 96.8 326.3)
OKLCHoklch(0.699 0.267 325.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec4af4 on white: 3.06:1
AA ✗ fail · AA-large · AAA
Aa
#ec4af4 on black: 6.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green29.0%
Blue95.7%

CMYK percentages

Cyan3.3%
Magenta69.7%
Yellow0.0%
Key (black)4.3%

Color previews

#ec4af4 text on a black background

contrast 6.85:1

Card sample

#ec4af4 text on a white background

contrast 3.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec4af4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec4af4 in the Color Lab