Skip to content

#f17fdf

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

RGB
241, 127, 223
HSL
310°, 80%, 72%
CMYK
0, 47, 8, 6
Luminance
0.3921

Every format

HEX#f17fdf
RGBrgb(241, 127, 223)
HSLhsl(310, 80%, 72%)
CMYKcmyk(0%, 47%, 8%, 6%)
LABlab(68.9 56.1 -29.7)
LCHlch(68.9 63.5 332.1)
OKLCHoklch(0.755 0.180 333.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f17fdf on white: 2.38:1
AA ✗ fail · AA-large · AAA
Aa
#f17fdf on black: 8.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.5%
Green49.8%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta47.3%
Yellow7.5%
Key (black)5.5%

Color previews

#f17fdf text on a black background

contrast 8.84:1

Card sample

#f17fdf text on a white background

contrast 2.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(241, 127, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(241, 127, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f17fdf;
background: linear-gradient(135deg, #f17fdf, #F17F93);

Monochromatic scale

Palettes built from #f17fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f17fdf in the Color Lab