Skip to content

#f52df0

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

RGB
245, 45, 240
HSL
302°, 91%, 57%
CMYK
0, 82, 2, 4
Luminance
0.2758

Every format

HEX#f52df0
RGBrgb(245, 45, 240)
HSLhsl(302, 91%, 57%)
CMYKcmyk(0%, 82%, 2%, 4%)
LABlab(59.5 89.5 -53.9)
LCHlch(59.5 104.4 328.9)
OKLCHoklch(0.690 0.293 329.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f52df0 on white: 3.22:1
AA ✗ fail · AA-large · AAA
Aa
#f52df0 on black: 6.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.1%
Green17.6%
Blue94.1%

CMYK percentages

Cyan0.0%
Magenta81.6%
Yellow2.0%
Key (black)3.9%

Color previews

#f52df0 text on a black background

contrast 6.52:1

Card sample

#f52df0 text on a white background

contrast 3.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f52df0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f52df0 in the Color Lab