Skip to content

#ff9dfb

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

RGB
255, 157, 251
HSL
302°, 100%, 81%
CMYK
0, 38, 2, 0
Luminance
0.5234

Every format

HEX#ff9dfb
RGBrgb(255, 157, 251)
HSLhsl(302, 100%, 81%)
CMYKcmyk(0%, 38%, 2%, 0%)
LABlab(77.5 50.1 -31.7)
LCHlch(77.5 59.3 327.7)
OKLCHoklch(0.826 0.164 328.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff9dfb on white: 1.83:1
AA ✗ fail · AA-large · AAA
Aa
#ff9dfb on black: 11.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green61.6%
Blue98.4%

CMYK percentages

Cyan0.0%
Magenta38.4%
Yellow1.6%
Key (black)0.0%

Color previews

#ff9dfb text on a black background

contrast 11.47:1

Card sample

#ff9dfb text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff9dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff9dfb in the Color Lab