Skip to content

#f56dfd

a light, electric magenta / pink · warm · closest name: violet

RGB
245, 109, 253
HSL
297°, 97%, 71%
CMYK
3, 57, 0, 1
Luminance
0.3744

Every format

HEX#f56dfd
RGBrgb(245, 109, 253)
HSLhsl(297, 97%, 71%)
CMYKcmyk(3%, 57%, 0%, 1%)
LABlab(67.6 70.6 -48.2)
LCHlch(67.6 85.5 325.6)
OKLCHoklch(0.751 0.235 325.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f56dfd on white: 2.47:1
AA ✗ fail · AA-large · AAA
Aa
#f56dfd on black: 8.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.1%
Green42.7%
Blue99.2%

CMYK percentages

Cyan3.2%
Magenta56.9%
Yellow0.0%
Key (black)0.8%

Color previews

#f56dfd text on a black background

contrast 8.49:1

Card sample

#f56dfd text on a white background

contrast 2.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f56dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f56dfd in the Color Lab