Skip to content

#f2abfb

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

RGB
242, 171, 251
HSL
293°, 91%, 83%
CMYK
4, 32, 0, 2
Luminance
0.5497

Every format

HEX#f2abfb
RGBrgb(242, 171, 251)
HSLhsl(293, 91%, 83%)
CMYKcmyk(4%, 32%, 0%, 2%)
LABlab(79.0 38.9 -29.4)
LCHlch(79.0 48.8 322.9)
OKLCHoklch(0.835 0.132 322.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2abfb on white: 1.75:1
AA ✗ fail · AA-large · AAA
Aa
#f2abfb on black: 11.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green67.1%
Blue98.4%

CMYK percentages

Cyan3.6%
Magenta31.9%
Yellow0.0%
Key (black)1.6%

Color previews

#f2abfb text on a black background

contrast 11.99:1

Card sample

#f2abfb text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2abfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2abfb in the Color Lab