Skip to content

#f99dfb

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

RGB
249, 157, 251
HSL
299°, 92%, 80%
CMYK
1, 38, 0, 2
Luminance
0.5122

Every format

HEX#f99dfb
RGBrgb(249, 157, 251)
HSLhsl(299, 92%, 80%)
CMYKcmyk(1%, 38%, 0%, 2%)
LABlab(76.8 48.3 -32.8)
LCHlch(76.8 58.4 325.8)
OKLCHoklch(0.820 0.161 326.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f99dfb on white: 1.87:1
AA ✗ fail · AA-large · AAA
Aa
#f99dfb on black: 11.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.6%
Green61.6%
Blue98.4%

CMYK percentages

Cyan0.8%
Magenta37.5%
Yellow0.0%
Key (black)1.6%

Color previews

#f99dfb text on a black background

contrast 11.24:1

Card sample

#f99dfb text on a white background

contrast 1.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f99dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f99dfb in the Color Lab