Skip to content

#af2fac

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

RGB
175, 47, 172
HSL
301°, 58%, 44%
CMYK
0, 73, 2, 31
Luminance
0.1413

Every format

HEX#af2fac
RGBrgb(175, 47, 172)
HSLhsl(301, 58%, 44%)
CMYKcmyk(0%, 73%, 2%, 31%)
LABlab(44.4 64.8 -39.5)
LCHlch(44.4 75.9 328.6)
OKLCHoklch(0.549 0.212 329.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2fac on white: 5.49:1
AA ✓ pass · AA-large · AAA
Aa
#af2fac on black: 3.83:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green18.4%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta73.1%
Yellow1.7%
Key (black)31.4%

Color previews

#af2fac text on a black background

contrast 3.83:1

Card sample

#af2fac text on a white background

contrast 5.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2fac in the Color Lab