Skip to content

#f97dfd

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

RGB
249, 125, 253
HSL
298°, 97%, 74%
CMYK
2, 51, 0, 1
Luminance
0.4190

Every format

HEX#f97dfd
RGBrgb(249, 125, 253)
HSLhsl(298, 97%, 74%)
CMYKcmyk(2%, 51%, 0%, 1%)
LABlab(70.8 64.4 -43.2)
LCHlch(70.8 77.5 326.1)
OKLCHoklch(0.775 0.214 326.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red97.6%
Green49.0%
Blue99.2%

CMYK percentages

Cyan1.6%
Magenta50.6%
Yellow0.0%
Key (black)0.8%

Color previews

#f97dfd text on a black background

contrast 9.38:1

Card sample

#f97dfd text on a white background

contrast 2.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f97dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f97dfd in the Color Lab