Skip to content

#fc0afd

a balanced, electric magenta / pink · warm · “magenta”

RGB
252, 10, 253
HSL
300°, 98%, 52%
CMYK
0, 96, 0, 1
Luminance
0.2800

Every format

HEX#fc0afd
RGBrgb(252, 10, 253)
HSLhsl(300, 98%, 52%)
CMYKcmyk(0%, 96%, 0%, 1%)
LABlab(59.9 96.9 -60.4)
LCHlch(59.9 114.2 328.1)
OKLCHoklch(0.697 0.318 328.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fc0afd on white: 3.18:1
AA ✗ fail · AA-large · AAA
Aa
#fc0afd on black: 6.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green3.9%
Blue99.2%

CMYK percentages

Cyan0.4%
Magenta96.0%
Yellow0.0%
Key (black)0.8%

Color previews

#fc0afd text on a black background

contrast 6.60:1

Card sample

#fc0afd text on a white background

contrast 3.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fc0afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fc0afd in the Color Lab