Skip to content

#af16cf

a dark, electric violet · warm · closest name: magenta

RGB
175, 22, 207
HSL
290°, 81%, 45%
CMYK
16, 89, 0, 19
Luminance
0.1419

Every format

HEX#af16cf
RGBrgb(175, 22, 207)
HSLhsl(290, 81%, 45%)
CMYKcmyk(16%, 89%, 0%, 19%)
LABlab(44.5 76.7 -59.8)
LCHlch(44.5 97.3 322.0)
OKLCHoklch(0.556 0.258 319.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af16cf on white: 5.47:1
AA ✓ pass · AA-large · AAA
Aa
#af16cf on black: 3.84:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green8.6%
Blue81.2%

CMYK percentages

Cyan15.5%
Magenta89.4%
Yellow0.0%
Key (black)18.8%

Color previews

#af16cf text on a black background

contrast 3.84:1

Card sample

#af16cf text on a white background

contrast 5.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af16cf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af16cf in the Color Lab