Skip to content

#df52e7

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

RGB
223, 82, 231
HSL
297°, 76%, 61%
CMYK
4, 65, 0, 9
Luminance
0.2749

Every format

HEX#df52e7
RGBrgb(223, 82, 231)
HSLhsl(297, 76%, 61%)
CMYKcmyk(4%, 65%, 0%, 9%)
LABlab(59.4 72.7 -49.2)
LCHlch(59.4 87.8 325.9)
OKLCHoklch(0.681 0.241 325.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df52e7 on white: 3.23:1
AA ✗ fail · AA-large · AAA
Aa
#df52e7 on black: 6.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green32.2%
Blue90.6%

CMYK percentages

Cyan3.5%
Magenta64.5%
Yellow0.0%
Key (black)9.4%

Color previews

#df52e7 text on a black background

contrast 6.50:1

Card sample

#df52e7 text on a white background

contrast 3.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df52e7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df52e7 in the Color Lab