Skip to content

#df2af5

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

RGB
223, 42, 245
HSL
294°, 91%, 56%
CMYK
9, 83, 0, 4
Luminance
0.2394

Every format

HEX#df2af5
RGBrgb(223, 42, 245)
HSLhsl(294, 91%, 56%)
CMYKcmyk(9%, 83%, 0%, 4%)
LABlab(56.0 87.0 -62.5)
LCHlch(56.0 107.1 324.3)
OKLCHoklch(0.660 0.290 322.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df2af5 on white: 3.63:1
AA ✗ fail · AA-large · AAA
Aa
#df2af5 on black: 5.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green16.5%
Blue96.1%

CMYK percentages

Cyan9.0%
Magenta82.9%
Yellow0.0%
Key (black)3.9%

Color previews

#df2af5 text on a black background

contrast 5.79:1

Card sample

#df2af5 text on a white background

contrast 3.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df2af5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df2af5 in the Color Lab