Skip to content

#df2af2

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

RGB
223, 42, 242
HSL
294°, 89%, 56%
CMYK
8, 83, 0, 5
Luminance
0.2375

Every format

HEX#df2af2
RGBrgb(223, 42, 242)
HSLhsl(294, 89%, 56%)
CMYKcmyk(8%, 83%, 0%, 5%)
LABlab(55.8 86.5 -61.1)
LCHlch(55.8 105.9 324.8)
OKLCHoklch(0.658 0.288 323.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df2af2 on white: 3.65:1
AA ✗ fail · AA-large · AAA
Aa
#df2af2 on black: 5.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green16.5%
Blue94.9%

CMYK percentages

Cyan7.9%
Magenta82.6%
Yellow0.0%
Key (black)5.1%

Color previews

#df2af2 text on a black background

contrast 5.75:1

Card sample

#df2af2 text on a white background

contrast 3.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df2af2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df2af2 in the Color Lab