Skip to content

#f2aafd

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

RGB
242, 170, 253
HSL
292°, 95%, 83%
CMYK
4, 33, 0, 1
Luminance
0.5472

Every format

HEX#f2aafd
RGBrgb(242, 170, 253)
HSLhsl(292, 95%, 83%)
CMYKcmyk(4%, 33%, 0%, 1%)
LABlab(78.9 39.8 -30.7)
LCHlch(78.9 50.3 322.3)
OKLCHoklch(0.834 0.136 322.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2aafd on white: 1.76:1
AA ✗ fail · AA-large · AAA
Aa
#f2aafd on black: 11.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green66.7%
Blue99.2%

CMYK percentages

Cyan4.3%
Magenta32.8%
Yellow0.0%
Key (black)0.8%

Color previews

#f2aafd text on a black background

contrast 11.94:1

Card sample

#f2aafd text on a white background

contrast 1.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2aafd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2aafd in the Color Lab