Skip to content

#fc2df2

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

RGB
252, 45, 242
HSL
303°, 97%, 58%
CMYK
0, 82, 4, 1
Luminance
0.2898

Every format

HEX#fc2df2
RGBrgb(252, 45, 242)
HSLhsl(303, 97%, 58%)
CMYKcmyk(0%, 82%, 4%, 1%)
LABlab(60.8 91.0 -52.9)
LCHlch(60.8 105.3 329.8)
OKLCHoklch(0.702 0.297 330.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fc2df2 on white: 3.09:1
AA ✗ fail · AA-large · AAA
Aa
#fc2df2 on black: 6.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green17.6%
Blue94.9%

CMYK percentages

Cyan0.0%
Magenta82.1%
Yellow4.0%
Key (black)1.2%

Color previews

#fc2df2 text on a black background

contrast 6.80:1

Card sample

#fc2df2 text on a white background

contrast 3.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fc2df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fc2df2 in the Color Lab