Skip to content

#df17d2

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

RGB
223, 23, 210
HSL
304°, 81%, 48%
CMYK
0, 90, 6, 13
Luminance
0.2095

Every format

HEX#df17d2
RGBrgb(223, 23, 210)
HSLhsl(304, 81%, 48%)
CMYKcmyk(0%, 90%, 6%, 13%)
LABlab(52.9 85.0 -47.7)
LCHlch(52.9 97.4 330.7)
OKLCHoklch(0.631 0.277 331.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df17d2 on white: 4.05:1
AA ✗ fail · AA-large · AAA
Aa
#df17d2 on black: 5.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green9.0%
Blue82.4%

CMYK percentages

Cyan0.0%
Magenta89.7%
Yellow5.8%
Key (black)12.5%

Color previews

#df17d2 text on a black background

contrast 5.19:1

Card sample

#df17d2 text on a white background

contrast 4.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df17d2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df17d2 in the Color Lab