Skip to content

#fc2af0

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

RGB
252, 42, 240
HSL
303°, 97%, 58%
CMYK
0, 83, 5, 1
Luminance
0.2864

Every format

HEX#fc2af0
RGBrgb(252, 42, 240)
HSLhsl(303, 97%, 58%)
CMYKcmyk(0%, 83%, 5%, 1%)
LABlab(60.5 91.3 -52.3)
LCHlch(60.5 105.2 330.2)
OKLCHoklch(0.699 0.298 331.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fc2af0 on white: 3.12:1
AA ✗ fail · AA-large · AAA
Aa
#fc2af0 on black: 6.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green16.5%
Blue94.1%

CMYK percentages

Cyan0.0%
Magenta83.3%
Yellow4.8%
Key (black)1.2%

Color previews

#fc2af0 text on a black background

contrast 6.73:1

Card sample

#fc2af0 text on a white background

contrast 3.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fc2af0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fc2af0 in the Color Lab