Skip to content

#ec2dfb

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

RGB
236, 45, 251
HSL
296°, 96%, 58%
CMYK
6, 82, 0, 2
Luminance
0.2667

Every format

HEX#ec2dfb
RGBrgb(236, 45, 251)
HSLhsl(296, 96%, 58%)
CMYKcmyk(6%, 82%, 0%, 2%)
LABlab(58.7 89.5 -61.4)
LCHlch(58.7 108.6 325.5)
OKLCHoklch(0.683 0.297 324.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec2dfb on white: 3.31:1
AA ✗ fail · AA-large · AAA
Aa
#ec2dfb on black: 6.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green17.6%
Blue98.4%

CMYK percentages

Cyan6.0%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#ec2dfb text on a black background

contrast 6.33:1

Card sample

#ec2dfb text on a white background

contrast 3.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec2dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec2dfb in the Color Lab