Skip to content

#f52dfd

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

RGB
245, 45, 253
HSL
298°, 98%, 58%
CMYK
3, 82, 0, 1
Luminance
0.2838

Every format

HEX#f52dfd
RGBrgb(245, 45, 253)
HSLhsl(298, 98%, 58%)
CMYKcmyk(3%, 82%, 0%, 1%)
LABlab(60.2 91.4 -60.0)
LCHlch(60.2 109.3 326.7)
OKLCHoklch(0.698 0.302 326.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f52dfd on white: 3.15:1
AA ✗ fail · AA-large · AAA
Aa
#f52dfd on black: 6.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.1%
Green17.6%
Blue99.2%

CMYK percentages

Cyan3.2%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#f52dfd text on a black background

contrast 6.68:1

Card sample

#f52dfd text on a white background

contrast 3.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f52dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f52dfd in the Color Lab