Skip to content

#f2acfb

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

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

Every format

HEX#f2acfb
RGBrgb(242, 172, 251)
HSLhsl(293, 91%, 83%)
CMYKcmyk(4%, 32%, 0%, 2%)
LABlab(79.2 38.4 -29.1)
LCHlch(79.2 48.1 322.8)
OKLCHoklch(0.836 0.131 322.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2acfb on white: 1.74:1
AA ✗ fail · AA-large · AAA
Aa
#f2acfb on black: 12.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green67.5%
Blue98.4%

CMYK percentages

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

Color previews

#f2acfb text on a black background

contrast 12.07:1

Card sample

#f2acfb text on a white background

contrast 1.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2acfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2acfb in the Color Lab