Skip to content

#f2aefe

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

RGB
242, 174, 254
HSL
291°, 98%, 84%
CMYK
5, 32, 0, 0
Luminance
0.5631

Every format

HEX#f2aefe
RGBrgb(242, 174, 254)
HSLhsl(291, 98%, 84%)
CMYKcmyk(5%, 32%, 0%, 0%)
LABlab(79.8 37.9 -29.9)
LCHlch(79.8 48.2 321.7)
OKLCHoklch(0.841 0.130 321.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2aefe on white: 1.71:1
AA ✗ fail · AA-large · AAA
Aa
#f2aefe on black: 12.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green68.2%
Blue99.6%

CMYK percentages

Cyan4.7%
Magenta31.5%
Yellow0.0%
Key (black)0.4%

Color previews

#f2aefe text on a black background

contrast 12.26:1

Card sample

#f2aefe text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2aefe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2aefe in the Color Lab