Skip to content

#af16eb

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

RGB
175, 22, 235
HSL
283°, 84%, 50%
CMYK
26, 91, 0, 8
Luminance
0.1569

Every format

HEX#af16eb
RGBrgb(175, 22, 235)
HSLhsl(283, 84%, 50%)
CMYKcmyk(26%, 91%, 0%, 8%)
LABlab(46.6 81.6 -72.5)
LCHlch(46.6 109.2 318.4)
OKLCHoklch(0.577 0.279 312.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af16eb on white: 5.08:1
AA ✓ pass · AA-large · AAA
Aa
#af16eb on black: 4.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green8.6%
Blue92.2%

CMYK percentages

Cyan25.5%
Magenta90.6%
Yellow0.0%
Key (black)7.8%

Color previews

#af16eb text on a black background

contrast 4.14:1

Card sample

#af16eb text on a white background

contrast 5.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af16eb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af16eb in the Color Lab