Skip to content

#fc40df

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

RGB
252, 64, 223
HSL
309°, 97%, 62%
CMYK
0, 75, 12, 1
Luminance
0.2969

Every format

HEX#fc40df
RGBrgb(252, 64, 223)
HSLhsl(309, 97%, 62%)
CMYKcmyk(0%, 75%, 12%, 1%)
LABlab(61.4 83.8 -41.3)
LCHlch(61.4 93.5 333.8)
OKLCHoklch(0.703 0.270 335.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fc40df on white: 3.03:1
AA ✗ fail · AA-large · AAA
Aa
#fc40df on black: 6.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green25.1%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta74.6%
Yellow11.5%
Key (black)1.2%

Color previews

#fc40df text on a black background

contrast 6.94:1

Card sample

#fc40df text on a white background

contrast 3.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fc40df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fc40df in the Color Lab