Skip to content

#ff5dfb

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

RGB
255, 93, 251
HSL
302°, 100%, 68%
CMYK
0, 64, 2, 0
Luminance
0.3605

Every format

HEX#ff5dfb
RGBrgb(255, 93, 251)
HSLhsl(302, 100%, 68%)
CMYKcmyk(0%, 64%, 2%, 0%)
LABlab(66.6 79.1 -48.7)
LCHlch(66.6 92.9 328.4)
OKLCHoklch(0.746 0.259 328.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff5dfb on white: 2.56:1
AA ✗ fail · AA-large · AAA
Aa
#ff5dfb on black: 8.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green36.5%
Blue98.4%

CMYK percentages

Cyan0.0%
Magenta63.5%
Yellow1.6%
Key (black)0.0%

Color previews

#ff5dfb text on a black background

contrast 8.21:1

Card sample

#ff5dfb text on a white background

contrast 2.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff5dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff5dfb in the Color Lab