Skip to content

#ec2cfb

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

RGB
236, 44, 251
HSL
296°, 96%, 58%
CMYK
6, 83, 0, 2
Luminance
0.2660

Every format

HEX#ec2cfb
RGBrgb(236, 44, 251)
HSLhsl(296, 96%, 58%)
CMYKcmyk(6%, 83%, 0%, 2%)
LABlab(58.6 89.7 -61.5)
LCHlch(58.6 108.8 325.6)
OKLCHoklch(0.683 0.298 324.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec2cfb on white: 3.32:1
AA ✗ fail · AA-large · AAA
Aa
#ec2cfb on black: 6.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green17.3%
Blue98.4%

CMYK percentages

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

Color previews

#ec2cfb text on a black background

contrast 6.32:1

Card sample

#ec2cfb text on a white background

contrast 3.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec2cfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ec2cfb in the Color Lab