Skip to content

#f2abff

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

RGB
242, 171, 255
HSL
291°, 100%, 84%
CMYK
5, 33, 0, 0
Luminance
0.5522

Every format

HEX#f2abff
RGBrgb(242, 171, 255)
HSLhsl(291, 100%, 84%)
CMYKcmyk(5%, 33%, 0%, 0%)
LABlab(79.2 39.6 -31.4)
LCHlch(79.2 50.5 321.7)
OKLCHoklch(0.836 0.137 321.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green67.1%
Blue100.0%

CMYK percentages

Cyan5.1%
Magenta32.9%
Yellow0.0%
Key (black)0.0%

Color previews

#f2abff text on a black background

contrast 12.04:1

Card sample

#f2abff text on a white background

contrast 1.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2abff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2abff in the Color Lab