Skip to content

#fc4ff2

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

RGB
252, 79, 242
HSL
304°, 97%, 65%
CMYK
0, 69, 4, 1
Luminance
0.3270

Every format

HEX#fc4ff2
RGBrgb(252, 79, 242)
HSLhsl(304, 97%, 65%)
CMYKcmyk(0%, 69%, 4%, 1%)
LABlab(63.9 82.0 -47.9)
LCHlch(63.9 95.0 329.7)
OKLCHoklch(0.724 0.268 330.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fc4ff2 on white: 2.79:1
AA ✗ fail · AA-large · AAA
Aa
#fc4ff2 on black: 7.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green31.0%
Blue94.9%

CMYK percentages

Cyan0.0%
Magenta68.7%
Yellow4.0%
Key (black)1.2%

Color previews

#fc4ff2 text on a black background

contrast 7.54:1

Card sample

#fc4ff2 text on a white background

contrast 2.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fc4ff2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fc4ff2 in the Color Lab