Skip to content

#af1eff

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

RGB
175, 30, 255
HSL
279°, 100%, 56%
CMYK
31, 88, 0, 0
Luminance
0.1726

Every format

HEX#af1eff
RGBrgb(175, 30, 255)
HSLhsl(279, 100%, 56%)
CMYKcmyk(31%, 88%, 0%, 0%)
LABlab(48.6 84.0 -80.4)
LCHlch(48.6 116.3 316.2)
OKLCHoklch(0.596 0.290 307.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af1eff on white: 4.72:1
AA ✓ pass · AA-large · AAA
Aa
#af1eff on black: 4.45:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan31.4%
Magenta88.2%
Yellow0.0%
Key (black)0.0%

Color previews

#af1eff text on a black background

contrast 4.45:1

Card sample

#af1eff text on a white background

contrast 4.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af1eff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af1eff in the Color Lab