Skip to content

#df2ad9

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

RGB
223, 42, 217
HSL
302°, 74%, 52%
CMYK
0, 81, 3, 13
Luminance
0.2235

Every format

HEX#df2ad9
RGBrgb(223, 42, 217)
HSLhsl(302, 74%, 52%)
CMYKcmyk(0%, 81%, 3%, 13%)
LABlab(54.4 82.7 -49.3)
LCHlch(54.4 96.3 329.2)
OKLCHoklch(0.643 0.271 329.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df2ad9 on white: 3.84:1
AA ✗ fail · AA-large · AAA
Aa
#df2ad9 on black: 5.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green16.5%
Blue85.1%

CMYK percentages

Cyan0.0%
Magenta81.2%
Yellow2.7%
Key (black)12.5%

Color previews

#df2ad9 text on a black background

contrast 5.47:1

Card sample

#df2ad9 text on a white background

contrast 3.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df2ad9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df2ad9 in the Color Lab