Skip to content

#df28f0

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

RGB
223, 40, 240
HSL
295°, 87%, 55%
CMYK
7, 83, 0, 6
Luminance
0.2350

Every format

HEX#df28f0
RGBrgb(223, 40, 240)
HSLhsl(295, 87%, 55%)
CMYKcmyk(7%, 83%, 0%, 6%)
LABlab(55.6 86.6 -60.4)
LCHlch(55.6 105.6 325.1)
OKLCHoklch(0.656 0.288 324.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green15.7%
Blue94.1%

CMYK percentages

Cyan7.1%
Magenta83.3%
Yellow0.0%
Key (black)5.9%

Color previews

#df28f0 text on a black background

contrast 5.70:1

Card sample

#df28f0 text on a white background

contrast 3.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df28f0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #df28f0 in the Color Lab