Skip to content

#af16fe

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

RGB
175, 22, 254
HSL
280°, 99%, 54%
CMYK
31, 91, 0, 0
Luminance
0.1684

Every format

HEX#af16fe
RGBrgb(175, 22, 254)
HSLhsl(280, 99%, 54%)
CMYKcmyk(31%, 91%, 0%, 0%)
LABlab(48.1 85.1 -80.7)
LCHlch(48.1 117.3 316.5)
OKLCHoklch(0.592 0.293 308.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af16fe on white: 4.81:1
AA ✓ pass · AA-large · AAA
Aa
#af16fe on black: 4.37:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green8.6%
Blue99.6%

CMYK percentages

Cyan31.1%
Magenta91.3%
Yellow0.0%
Key (black)0.4%

Color previews

#af16fe text on a black background

contrast 4.37:1

Card sample

#af16fe text on a white background

contrast 4.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af16fe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af16fe in the Color Lab