Skip to content

#ff4df8

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

RGB
255, 77, 248
HSL
302°, 100%, 65%
CMYK
0, 70, 3, 0
Luminance
0.3335

Every format

HEX#ff4df8
RGBrgb(255, 77, 248)
HSLhsl(302, 100%, 65%)
CMYKcmyk(0%, 70%, 3%, 0%)
LABlab(64.4 84.2 -50.4)
LCHlch(64.4 98.1 329.1)
OKLCHoklch(0.730 0.275 329.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff4df8 on white: 2.74:1
AA ✗ fail · AA-large · AAA
Aa
#ff4df8 on black: 7.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green30.2%
Blue97.3%

CMYK percentages

Cyan0.0%
Magenta69.8%
Yellow2.7%
Key (black)0.0%

Color previews

#ff4df8 text on a black background

contrast 7.67:1

Card sample

#ff4df8 text on a white background

contrast 2.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff4df8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff4df8 in the Color Lab