Skip to content

#df17c2

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

RGB
223, 23, 194
HSL
309°, 81%, 48%
CMYK
0, 90, 13, 13
Luminance
0.2020

Every format

HEX#df17c2
RGBrgb(223, 23, 194)
HSLhsl(309, 81%, 48%)
CMYKcmyk(0%, 90%, 13%, 13%)
LABlab(52.1 82.8 -39.8)
LCHlch(52.1 91.9 334.3)
OKLCHoklch(0.623 0.267 335.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df17c2 on white: 4.17:1
AA ✗ fail · AA-large · AAA
Aa
#df17c2 on black: 5.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green9.0%
Blue76.1%

CMYK percentages

Cyan0.0%
Magenta89.7%
Yellow13.0%
Key (black)12.5%

Color previews

#df17c2 text on a black background

contrast 5.04:1

Card sample

#df17c2 text on a white background

contrast 4.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 23, 194, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 23, 194, 0.45);
Border & gradient
Gradient panel
border: 3px solid #df17c2;
background: linear-gradient(135deg, #df17c2, #DF173D);

Monochromatic scale

Palettes built from #df17c2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df17c2 in the Color Lab