Skip to content

#af0dff

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

RGB
175, 13, 255
HSL
280°, 100%, 53%
CMYK
31, 95, 0, 0
Luminance
0.1662

Every format

HEX#af0dff
RGBrgb(175, 13, 255)
HSLhsl(280, 100%, 53%)
CMYKcmyk(31%, 95%, 0%, 0%)
LABlab(47.8 86.4 -81.8)
LCHlch(47.8 119.0 316.6)
OKLCHoklch(0.590 0.297 308.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0dff on white: 4.86:1
AA ✓ pass · AA-large · AAA
Aa
#af0dff on black: 4.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green5.1%
Blue100.0%

CMYK percentages

Cyan31.4%
Magenta94.9%
Yellow0.0%
Key (black)0.0%

Color previews

#af0dff text on a black background

contrast 4.32:1

Card sample

#af0dff text on a white background

contrast 4.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0dff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af0dff in the Color Lab