Skip to content

#ff40df

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

RGB
255, 64, 223
HSL
310°, 100%, 63%
CMYK
0, 75, 13, 0
Luminance
0.3025

Every format

HEX#ff40df
RGBrgb(255, 64, 223)
HSLhsl(310, 100%, 63%)
CMYKcmyk(0%, 75%, 13%, 0%)
LABlab(61.9 84.5 -40.5)
LCHlch(61.9 93.7 334.4)
OKLCHoklch(0.707 0.271 336.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff40df on white: 2.98:1
AA ✗ fail · AA-large · AAA
Aa
#ff40df on black: 7.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green25.1%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta74.9%
Yellow12.5%
Key (black)0.0%

Color previews

#ff40df text on a black background

contrast 7.05:1

Card sample

#ff40df text on a white background

contrast 2.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff40df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff40df in the Color Lab