Skip to content

#af2f9d

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

RGB
175, 47, 157
HSL
308°, 58%, 44%
CMYK
0, 73, 10, 31
Luminance
0.1358

Every format

HEX#af2f9d
RGBrgb(175, 47, 157)
HSLhsl(308, 58%, 44%)
CMYKcmyk(0%, 73%, 10%, 31%)
LABlab(43.6 62.4 -31.8)
LCHlch(43.6 70.0 333.0)
OKLCHoklch(0.541 0.201 334.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2f9d on white: 5.65:1
AA ✓ pass · AA-large · AAA
Aa
#af2f9d on black: 3.72:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.4%
Blue61.6%

CMYK percentages

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

Color previews

#af2f9d text on a black background

contrast 3.72:1

Card sample

#af2f9d text on a white background

contrast 5.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2f9d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2f9d in the Color Lab