Skip to content

#ff5df8

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

RGB
255, 93, 248
HSL
303°, 100%, 68%
CMYK
0, 64, 3, 0
Luminance
0.3587

Every format

HEX#ff5df8
RGBrgb(255, 93, 248)
HSLhsl(303, 100%, 68%)
CMYKcmyk(0%, 64%, 3%, 0%)
LABlab(66.4 78.6 -47.3)
LCHlch(66.4 91.7 329.0)
OKLCHoklch(0.744 0.257 329.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff5df8 on white: 2.57:1
AA ✗ fail · AA-large · AAA
Aa
#ff5df8 on black: 8.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green36.5%
Blue97.3%

CMYK percentages

Cyan0.0%
Magenta63.5%
Yellow2.7%
Key (black)0.0%

Color previews

#ff5df8 text on a black background

contrast 8.17:1

Card sample

#ff5df8 text on a white background

contrast 2.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(255, 93, 248, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 93, 248, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ff5df8;
background: linear-gradient(135deg, #ff5df8, #FF5D8C);

Monochromatic scale

Palettes built from #ff5df8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff5df8 in the Color Lab