Skip to content

#df2afb

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

RGB
223, 42, 251
HSL
292°, 96%, 58%
CMYK
11, 83, 0, 2
Luminance
0.2431

Every format

HEX#df2afb
RGBrgb(223, 42, 251)
HSLhsl(292, 96%, 58%)
CMYKcmyk(11%, 83%, 0%, 2%)
LABlab(56.4 88.0 -65.2)
LCHlch(56.4 109.5 323.5)
OKLCHoklch(0.663 0.294 321.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df2afb on white: 3.58:1
AA ✗ fail · AA-large · AAA
Aa
#df2afb on black: 5.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green16.5%
Blue98.4%

CMYK percentages

Cyan11.2%
Magenta83.3%
Yellow0.0%
Key (black)1.6%

Color previews

#df2afb text on a black background

contrast 5.86:1

Card sample

#df2afb text on a white background

contrast 3.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df2afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df2afb in the Color Lab