Skip to content

#af2c7f

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

RGB
175, 44, 127
HSL
322°, 60%, 43%
CMYK
0, 75, 27, 31
Luminance
0.1245

Every format

HEX#af2c7f
RGBrgb(175, 44, 127)
HSLhsl(322, 60%, 43%)
CMYKcmyk(0%, 75%, 27%, 31%)
LABlab(41.9 59.2 -16.2)
LCHlch(41.9 61.4 344.7)
OKLCHoklch(0.524 0.185 346.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2c7f on white: 6.02:1
AA ✓ pass · AA-large · AAA
Aa
#af2c7f on black: 3.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green17.3%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta74.9%
Yellow27.4%
Key (black)31.4%

Color previews

#af2c7f text on a black background

contrast 3.49:1

Card sample

#af2c7f text on a white background

contrast 6.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2c7f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2c7f in the Color Lab