Skip to content

#df2fe7

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

RGB
223, 47, 231
HSL
297°, 79%, 55%
CMYK
4, 80, 0, 9
Luminance
0.2349

Every format

HEX#df2fe7
RGBrgb(223, 47, 231)
HSLhsl(297, 79%, 55%)
CMYKcmyk(4%, 80%, 0%, 9%)
LABlab(55.6 83.7 -55.3)
LCHlch(55.6 100.3 326.5)
OKLCHoklch(0.654 0.277 326.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df2fe7 on white: 3.69:1
AA ✗ fail · AA-large · AAA
Aa
#df2fe7 on black: 5.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green18.4%
Blue90.6%

CMYK percentages

Cyan3.5%
Magenta79.7%
Yellow0.0%
Key (black)9.4%

Color previews

#df2fe7 text on a black background

contrast 5.70:1

Card sample

#df2fe7 text on a white background

contrast 3.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df2fe7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df2fe7 in the Color Lab