Skip to content

#f97dfb

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

RGB
249, 125, 251
HSL
299°, 94%, 74%
CMYK
1, 50, 0, 2
Luminance
0.4177

Every format

HEX#f97dfb
RGBrgb(249, 125, 251)
HSLhsl(299, 94%, 74%)
CMYKcmyk(1%, 50%, 0%, 2%)
LABlab(70.7 64.0 -42.2)
LCHlch(70.7 76.7 326.6)
OKLCHoklch(0.774 0.212 326.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f97dfb on white: 2.24:1
AA ✗ fail · AA-large · AAA
Aa
#f97dfb on black: 9.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.6%
Green49.0%
Blue98.4%

CMYK percentages

Cyan0.8%
Magenta50.2%
Yellow0.0%
Key (black)1.6%

Color previews

#f97dfb text on a black background

contrast 9.35:1

Card sample

#f97dfb text on a white background

contrast 2.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f97dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f97dfb in the Color Lab