Skip to content

#f20dfd

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

RGB
242, 13, 253
HSL
297°, 98%, 52%
CMYK
4, 95, 0, 1
Luminance
0.2626

Every format

HEX#f20dfd
RGBrgb(242, 13, 253)
HSLhsl(297, 98%, 52%)
CMYKcmyk(4%, 95%, 0%, 1%)
LABlab(58.3 95.2 -63.1)
LCHlch(58.3 114.2 326.5)
OKLCHoklch(0.683 0.314 325.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f20dfd on white: 3.36:1
AA ✗ fail · AA-large · AAA
Aa
#f20dfd on black: 6.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green5.1%
Blue99.2%

CMYK percentages

Cyan4.3%
Magenta94.9%
Yellow0.0%
Key (black)0.8%

Color previews

#f20dfd text on a black background

contrast 6.25:1

Card sample

#f20dfd text on a white background

contrast 3.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f20dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f20dfd in the Color Lab