Skip to content

#ff4dfb

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

RGB
255, 77, 251
HSL
301°, 100%, 65%
CMYK
0, 70, 2, 0
Luminance
0.3353

Every format

HEX#ff4dfb
RGBrgb(255, 77, 251)
HSLhsl(301, 100%, 65%)
CMYKcmyk(0%, 70%, 2%, 0%)
LABlab(64.6 84.6 -51.8)
LCHlch(64.6 99.2 328.5)
OKLCHoklch(0.731 0.278 328.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff4dfb on white: 2.72:1
AA ✗ fail · AA-large · AAA
Aa
#ff4dfb on black: 7.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green30.2%
Blue98.4%

CMYK percentages

Cyan0.0%
Magenta69.8%
Yellow1.6%
Key (black)0.0%

Color previews

#ff4dfb text on a black background

contrast 7.71:1

Card sample

#ff4dfb text on a white background

contrast 2.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff4dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff4dfb in the Color Lab