Skip to content

#f17dfb

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

RGB
241, 125, 251
HSL
295°, 94%, 74%
CMYK
4, 50, 0, 2
Luminance
0.4033

Every format

HEX#f17dfb
RGBrgb(241, 125, 251)
HSLhsl(295, 94%, 74%)
CMYKcmyk(4%, 50%, 0%, 2%)
LABlab(69.7 61.9 -43.9)
LCHlch(69.7 75.9 324.7)
OKLCHoklch(0.765 0.207 324.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f17dfb on white: 2.32:1
AA ✗ fail · AA-large · AAA
Aa
#f17dfb on black: 9.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.5%
Green49.0%
Blue98.4%

CMYK percentages

Cyan4.0%
Magenta50.2%
Yellow0.0%
Key (black)1.6%

Color previews

#f17dfb text on a black background

contrast 9.07:1

Card sample

#f17dfb text on a white background

contrast 2.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f17dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f17dfb in the Color Lab