Skip to content

#af1afd

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

RGB
175, 26, 253
HSL
279°, 98%, 55%
CMYK
31, 90, 0, 1
Luminance
0.1694

Every format

HEX#af1afd
RGBrgb(175, 26, 253)
HSLhsl(279, 98%, 55%)
CMYKcmyk(31%, 90%, 0%, 1%)
LABlab(48.2 84.3 -80.0)
LCHlch(48.2 116.2 316.5)
OKLCHoklch(0.593 0.291 308.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af1afd on white: 4.78:1
AA ✓ pass · AA-large · AAA
Aa
#af1afd on black: 4.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green10.2%
Blue99.2%

CMYK percentages

Cyan30.8%
Magenta89.7%
Yellow0.0%
Key (black)0.8%

Color previews

#af1afd text on a black background

contrast 4.39:1

Card sample

#af1afd text on a white background

contrast 4.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af1afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af1afd in the Color Lab