Skip to content

#af3fab

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

RGB
175, 63, 171
HSL
302°, 47%, 47%
CMYK
0, 64, 2, 31
Luminance
0.1561

Every format

HEX#af3fab
RGBrgb(175, 63, 171)
HSLhsl(302, 47%, 47%)
CMYKcmyk(0%, 64%, 2%, 31%)
LABlab(46.5 58.7 -35.7)
LCHlch(46.5 68.7 328.7)
OKLCHoklch(0.563 0.192 329.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af3fab on white: 5.09:1
AA ✓ pass · AA-large · AAA
Aa
#af3fab on black: 4.12:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green24.7%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta64.0%
Yellow2.3%
Key (black)31.4%

Color previews

#af3fab text on a black background

contrast 4.12:1

Card sample

#af3fab text on a white background

contrast 5.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af3fab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af3fab in the Color Lab