Skip to content

#af0cff

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

RGB
175, 12, 255
HSL
280°, 100%, 52%
CMYK
31, 95, 0, 0
Luminance
0.1660

Every format

HEX#af0cff
RGBrgb(175, 12, 255)
HSLhsl(280, 100%, 52%)
CMYKcmyk(31%, 95%, 0%, 0%)
LABlab(47.8 86.5 -81.8)
LCHlch(47.8 119.0 316.6)
OKLCHoklch(0.590 0.297 308.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green4.7%
Blue100.0%

CMYK percentages

Cyan31.4%
Magenta95.3%
Yellow0.0%
Key (black)0.0%

Color previews

#af0cff text on a black background

contrast 4.32:1

Card sample

#af0cff text on a white background

contrast 4.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af0cff in the Color Lab