Skip to content

#f56afd

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

RGB
245, 106, 253
HSL
297°, 97%, 70%
CMYK
3, 58, 0, 1
Luminance
0.3681

Every format

HEX#f56afd
RGBrgb(245, 106, 253)
HSLhsl(297, 97%, 70%)
CMYKcmyk(3%, 58%, 0%, 1%)
LABlab(67.1 71.8 -49.0)
LCHlch(67.1 87.0 325.7)
OKLCHoklch(0.747 0.239 325.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f56afd on white: 2.51:1
AA ✗ fail · AA-large · AAA
Aa
#f56afd on black: 8.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.1%
Green41.6%
Blue99.2%

CMYK percentages

Cyan3.2%
Magenta58.1%
Yellow0.0%
Key (black)0.8%

Color previews

#f56afd text on a black background

contrast 8.36:1

Card sample

#f56afd text on a white background

contrast 2.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f56afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f56afd in the Color Lab