Skip to content

#f40df4

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

RGB
244, 13, 244
HSL
300°, 91%, 50%
CMYK
0, 95, 0, 4
Luminance
0.2605

Every format

HEX#f40df4
RGBrgb(244, 13, 244)
HSLhsl(300, 91%, 50%)
CMYKcmyk(0%, 95%, 0%, 4%)
LABlab(58.1 94.2 -58.4)
LCHlch(58.1 110.8 328.2)
OKLCHoklch(0.680 0.309 328.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f40df4 on white: 3.38:1
AA ✗ fail · AA-large · AAA
Aa
#f40df4 on black: 6.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red95.7%
Green5.1%
Blue95.7%

CMYK percentages

Cyan0.0%
Magenta94.7%
Yellow0.0%
Key (black)4.3%

Color previews

#f40df4 text on a black background

contrast 6.21:1

Card sample

#f40df4 text on a white background

contrast 3.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f40df4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f40df4 in the Color Lab