Skip to content

#fc2afb

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

RGB
252, 42, 251
HSL
300°, 97%, 58%
CMYK
0, 83, 0, 1
Luminance
0.2932

Every format

HEX#fc2afb
RGBrgb(252, 42, 251)
HSLhsl(300, 97%, 58%)
CMYKcmyk(0%, 83%, 0%, 1%)
LABlab(61.1 92.9 -57.5)
LCHlch(61.1 109.2 328.3)
OKLCHoklch(0.705 0.305 328.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fc2afb on white: 3.06:1
AA ✗ fail · AA-large · AAA
Aa
#fc2afb on black: 6.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green16.5%
Blue98.4%

CMYK percentages

Cyan0.0%
Magenta83.3%
Yellow0.4%
Key (black)1.2%

Color previews

#fc2afb text on a black background

contrast 6.86:1

Card sample

#fc2afb text on a white background

contrast 3.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fc2afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fc2afb in the Color Lab