Skip to content

#dc2fe4

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

RGB
220, 47, 228
HSL
297°, 77%, 54%
CMYK
4, 79, 0, 11
Luminance
0.2285

Every format

HEX#dc2fe4
RGBrgb(220, 47, 228)
HSLhsl(297, 77%, 54%)
CMYKcmyk(4%, 79%, 0%, 11%)
LABlab(54.9 82.7 -54.7)
LCHlch(54.9 99.1 326.5)
OKLCHoklch(0.648 0.273 326.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dc2fe4 on white: 3.77:1
AA ✗ fail · AA-large · AAA
Aa
#dc2fe4 on black: 5.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green18.4%
Blue89.4%

CMYK percentages

Cyan3.5%
Magenta79.4%
Yellow0.0%
Key (black)10.6%

Color previews

#dc2fe4 text on a black background

contrast 5.57:1

Card sample

#dc2fe4 text on a white background

contrast 3.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(220, 47, 228, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(220, 47, 228, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dc2fe4;
background: linear-gradient(135deg, #dc2fe4, #E42F73);

Monochromatic scale

Palettes built from #dc2fe4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dc2fe4 in the Color Lab