Skip to content

#af2dc9

a balanced, vivid magenta / pink · warm · closest name: purple

RGB
175, 45, 201
HSL
290°, 63%, 48%
CMYK
13, 78, 0, 21
Luminance
0.1521

Every format

HEX#af2dc9
RGBrgb(175, 45, 201)
HSLhsl(290, 63%, 48%)
CMYKcmyk(13%, 78%, 0%, 21%)
LABlab(45.9 70.3 -54.1)
LCHlch(45.9 88.7 322.4)
OKLCHoklch(0.565 0.237 320.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2dc9 on white: 5.20:1
AA ✓ pass · AA-large · AAA
Aa
#af2dc9 on black: 4.04:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.6%
Blue78.8%

CMYK percentages

Cyan12.9%
Magenta77.6%
Yellow0.0%
Key (black)21.2%

Color previews

#af2dc9 text on a black background

contrast 4.04:1

Card sample

#af2dc9 text on a white background

contrast 5.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2dc9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2dc9 in the Color Lab