Skip to content

#af1cff

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

RGB
175, 28, 255
HSL
279°, 100%, 56%
CMYK
31, 89, 0, 0
Luminance
0.1716

Every format

HEX#af1cff
RGBrgb(175, 28, 255)
HSLhsl(279, 100%, 56%)
CMYKcmyk(31%, 89%, 0%, 0%)
LABlab(48.5 84.4 -80.6)
LCHlch(48.5 116.7 316.3)
OKLCHoklch(0.595 0.291 308.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af1cff on white: 4.74:1
AA ✓ pass · AA-large · AAA
Aa
#af1cff on black: 4.43:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green11.0%
Blue100.0%

CMYK percentages

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

Color previews

#af1cff text on a black background

contrast 4.43:1

Card sample

#af1cff text on a white background

contrast 4.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af1cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af1cff in the Color Lab