Skip to content

#af10ff

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

RGB
175, 16, 255
HSL
280°, 100%, 53%
CMYK
31, 94, 0, 0
Luminance
0.1670

Every format

HEX#af10ff
RGBrgb(175, 16, 255)
HSLhsl(280, 100%, 53%)
CMYKcmyk(31%, 94%, 0%, 0%)
LABlab(47.9 86.1 -81.6)
LCHlch(47.9 118.6 316.5)
OKLCHoklch(0.591 0.296 308.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af10ff on white: 4.84:1
AA ✓ pass · AA-large · AAA
Aa
#af10ff on black: 4.34:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green6.3%
Blue100.0%

CMYK percentages

Cyan31.4%
Magenta93.7%
Yellow0.0%
Key (black)0.0%

Color previews

#af10ff text on a black background

contrast 4.34:1

Card sample

#af10ff text on a white background

contrast 4.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af10ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af10ff in the Color Lab