Skip to content

#f97df5

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

RGB
249, 125, 245
HSL
302°, 91%, 73%
CMYK
0, 50, 2, 2
Luminance
0.4140

Every format

HEX#f97df5
RGBrgb(249, 125, 245)
HSLhsl(302, 91%, 73%)
CMYKcmyk(0%, 50%, 2%, 2%)
LABlab(70.5 63.0 -39.4)
LCHlch(70.5 74.3 328.0)
OKLCHoklch(0.771 0.207 328.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f97df5 on white: 2.26:1
AA ✗ fail · AA-large · AAA
Aa
#f97df5 on black: 9.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.6%
Green49.0%
Blue96.1%

CMYK percentages

Cyan0.0%
Magenta49.8%
Yellow1.6%
Key (black)2.4%

Color previews

#f97df5 text on a black background

contrast 9.28:1

Card sample

#f97df5 text on a white background

contrast 2.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f97df5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f97df5 in the Color Lab