Skip to content

#df21df

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

RGB
223, 33, 223
HSL
300°, 75%, 50%
CMYK
0, 85, 0, 13
Luminance
0.2210

Every format

HEX#df21df
RGBrgb(223, 33, 223)
HSLhsl(300, 75%, 50%)
CMYKcmyk(0%, 85%, 0%, 13%)
LABlab(54.1 85.3 -53.1)
LCHlch(54.1 100.5 328.1)
OKLCHoklch(0.642 0.280 328.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df21df on white: 3.87:1
AA ✗ fail · AA-large · AAA
Aa
#df21df on black: 5.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green12.9%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta85.2%
Yellow0.0%
Key (black)12.5%

Color previews

#df21df text on a black background

contrast 5.42:1

Card sample

#df21df text on a white background

contrast 3.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df21df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df21df in the Color Lab