Skip to content

#f2afda

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

RGB
242, 175, 218
HSL
322°, 72%, 82%
CMYK
0, 28, 10, 5
Luminance
0.5460

Every format

HEX#f2afda
RGBrgb(242, 175, 218)
HSLhsl(322, 72%, 82%)
CMYKcmyk(0%, 28%, 10%, 5%)
LABlab(78.8 30.9 -11.9)
LCHlch(78.8 33.2 338.9)
OKLCHoklch(0.829 0.095 340.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green68.6%
Blue85.5%

CMYK percentages

Cyan0.0%
Magenta27.7%
Yellow9.9%
Key (black)5.1%

Color previews

#f2afda text on a black background

contrast 11.92:1

Card sample

#f2afda text on a white background

contrast 1.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2afda

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2afda in the Color Lab