Skip to content

#af0fab

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

RGB
175, 15, 171
HSL
302°, 84%, 37%
CMYK
0, 91, 2, 31
Luminance
0.1240

Every format

HEX#af0fab
RGBrgb(175, 15, 171)
HSLhsl(302, 84%, 37%)
CMYKcmyk(0%, 91%, 2%, 31%)
LABlab(41.8 71.9 -43.0)
LCHlch(41.8 83.8 329.1)
OKLCHoklch(0.530 0.235 329.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0fab on white: 6.04:1
AA ✓ pass · AA-large · AAA
Aa
#af0fab on black: 3.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green5.9%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta91.4%
Yellow2.3%
Key (black)31.4%

Color previews

#af0fab text on a black background

contrast 3.48:1

Card sample

#af0fab text on a white background

contrast 6.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0fab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af0fab in the Color Lab