Skip to content

#af1cfd

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

RGB
175, 28, 253
HSL
279°, 98%, 55%
CMYK
31, 89, 0, 1
Luminance
0.1704

Every format

HEX#af1cfd
RGBrgb(175, 28, 253)
HSLhsl(279, 98%, 55%)
CMYKcmyk(31%, 89%, 0%, 1%)
LABlab(48.3 84.0 -79.8)
LCHlch(48.3 115.8 316.5)
OKLCHoklch(0.593 0.290 308.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af1cfd on white: 4.76:1
AA ✓ pass · AA-large · AAA
Aa
#af1cfd on black: 4.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green11.0%
Blue99.2%

CMYK percentages

Cyan30.8%
Magenta88.9%
Yellow0.0%
Key (black)0.8%

Color previews

#af1cfd text on a black background

contrast 4.41:1

Card sample

#af1cfd text on a white background

contrast 4.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af1cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af1cfd in the Color Lab