Skip to content

#af2faf

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

RGB
175, 47, 175
HSL
300°, 58%, 44%
CMYK
0, 73, 0, 31
Luminance
0.1424

Every format

HEX#af2faf
RGBrgb(175, 47, 175)
HSLhsl(300, 58%, 44%)
CMYKcmyk(0%, 73%, 0%, 31%)
LABlab(44.6 65.2 -41.0)
LCHlch(44.6 77.1 327.8)
OKLCHoklch(0.550 0.215 328.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2faf on white: 5.46:1
AA ✓ pass · AA-large · AAA
Aa
#af2faf on black: 3.85:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.4%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta73.1%
Yellow0.0%
Key (black)31.4%

Color previews

#af2faf text on a black background

contrast 3.85:1

Card sample

#af2faf text on a white background

contrast 5.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2faf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2faf in the Color Lab