Skip to content

#af2fab

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

RGB
175, 47, 171
HSL
302°, 58%, 44%
CMYK
0, 73, 2, 31
Luminance
0.1409

Every format

HEX#af2fab
RGBrgb(175, 47, 171)
HSLhsl(302, 58%, 44%)
CMYKcmyk(0%, 73%, 2%, 31%)
LABlab(44.4 64.6 -39.0)
LCHlch(44.4 75.5 328.9)
OKLCHoklch(0.548 0.212 329.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2fab on white: 5.50:1
AA ✓ pass · AA-large · AAA
Aa
#af2fab on black: 3.82:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.4%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta73.1%
Yellow2.3%
Key (black)31.4%

Color previews

#af2fab text on a black background

contrast 3.82:1

Card sample

#af2fab text on a white background

contrast 5.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2fab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2fab in the Color Lab