Skip to content

#f40df8

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

RGB
244, 13, 248
HSL
299°, 94%, 51%
CMYK
2, 95, 0, 3
Luminance
0.2630

Every format

HEX#f40df8
RGBrgb(244, 13, 248)
HSLhsl(299, 94%, 51%)
CMYKcmyk(2%, 95%, 0%, 3%)
LABlab(58.3 94.8 -60.3)
LCHlch(58.3 112.3 327.6)
OKLCHoklch(0.683 0.312 327.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f40df8 on white: 3.35:1
AA ✗ fail · AA-large · AAA
Aa
#f40df8 on black: 6.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red95.7%
Green5.1%
Blue97.3%

CMYK percentages

Cyan1.6%
Magenta94.8%
Yellow0.0%
Key (black)2.7%

Color previews

#f40df8 text on a black background

contrast 6.26:1

Card sample

#f40df8 text on a white background

contrast 3.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f40df8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f40df8 in the Color Lab