Skip to content

#af17ff

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

RGB
175, 23, 255
HSL
279°, 100%, 55%
CMYK
31, 91, 0, 0
Luminance
0.1695

Every format

HEX#af17ff
RGBrgb(175, 23, 255)
HSLhsl(279, 100%, 55%)
CMYKcmyk(31%, 91%, 0%, 0%)
LABlab(48.2 85.2 -81.1)
LCHlch(48.2 117.6 316.4)
OKLCHoklch(0.593 0.294 308.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af17ff on white: 4.78:1
AA ✓ pass · AA-large · AAA
Aa
#af17ff on black: 4.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green9.0%
Blue100.0%

CMYK percentages

Cyan31.4%
Magenta91.0%
Yellow0.0%
Key (black)0.0%

Color previews

#af17ff text on a black background

contrast 4.39:1

Card sample

#af17ff text on a white background

contrast 4.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af17ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af17ff in the Color Lab