Skip to content

#af49fd

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

RGB
175, 73, 253
HSL
274°, 98%, 64%
CMYK
31, 71, 0, 1
Luminance
0.2097

Every format

HEX#af49fd
RGBrgb(175, 73, 253)
HSLhsl(274, 98%, 64%)
CMYKcmyk(31%, 71%, 0%, 1%)
LABlab(52.9 70.6 -72.3)
LCHlch(52.9 101.0 314.3)
OKLCHoklch(0.626 0.254 306.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af49fd on white: 4.04:1
AA ✗ fail · AA-large · AAA
Aa
#af49fd on black: 5.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green28.6%
Blue99.2%

CMYK percentages

Cyan30.8%
Magenta71.1%
Yellow0.0%
Key (black)0.8%

Color previews

#af49fd text on a black background

contrast 5.19:1

Card sample

#af49fd text on a white background

contrast 4.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af49fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af49fd in the Color Lab