Skip to content

#f2afe2

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

RGB
242, 175, 226
HSL
314°, 72%, 82%
CMYK
0, 28, 7, 5
Luminance
0.5503

Every format

HEX#f2afe2
RGBrgb(242, 175, 226)
HSLhsl(314, 72%, 82%)
CMYKcmyk(0%, 28%, 7%, 5%)
LABlab(79.1 32.3 -15.9)
LCHlch(79.1 36.0 333.8)
OKLCHoklch(0.832 0.102 335.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green68.6%
Blue88.6%

CMYK percentages

Cyan0.0%
Magenta27.7%
Yellow6.6%
Key (black)5.1%

Color previews

#f2afe2 text on a black background

contrast 12.01:1

Card sample

#f2afe2 text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2afe2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2afe2 in the Color Lab