Skip to content

#ff7dfb

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

RGB
255, 125, 251
HSL
302°, 100%, 75%
CMYK
0, 51, 2, 0
Luminance
0.4289

Every format

HEX#ff7dfb
RGBrgb(255, 125, 251)
HSLhsl(302, 100%, 75%)
CMYKcmyk(0%, 51%, 2%, 0%)
LABlab(71.5 65.6 -41.0)
LCHlch(71.5 77.4 328.0)
OKLCHoklch(0.781 0.215 328.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff7dfb on white: 2.19:1
AA ✗ fail · AA-large · AAA
Aa
#ff7dfb on black: 9.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green49.0%
Blue98.4%

CMYK percentages

Cyan0.0%
Magenta51.0%
Yellow1.6%
Key (black)0.0%

Color previews

#ff7dfb text on a black background

contrast 9.58:1

Card sample

#ff7dfb text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff7dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff7dfb in the Color Lab