Skip to content

#f2afdf

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

RGB
242, 175, 223
HSL
317°, 72%, 82%
CMYK
0, 28, 8, 5
Luminance
0.5486

Every format

HEX#f2afdf
RGBrgb(242, 175, 223)
HSLhsl(317, 72%, 82%)
CMYKcmyk(0%, 28%, 8%, 5%)
LABlab(79.0 31.8 -14.4)
LCHlch(79.0 34.9 335.6)
OKLCHoklch(0.831 0.099 337.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green68.6%
Blue87.5%

CMYK percentages

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

Color previews

#f2afdf text on a black background

contrast 11.97:1

Card sample

#f2afdf text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2afdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2afdf in the Color Lab