Skip to content

#af49ff

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

RGB
175, 73, 255
HSL
274°, 100%, 64%
CMYK
31, 71, 0, 0
Luminance
0.2110

Every format

HEX#af49ff
RGBrgb(175, 73, 255)
HSLhsl(274, 100%, 64%)
CMYKcmyk(31%, 71%, 0%, 0%)
LABlab(53.1 71.0 -73.2)
LCHlch(53.1 102.0 314.2)
OKLCHoklch(0.627 0.256 305.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af49ff on white: 4.02:1
AA ✗ fail · AA-large · AAA
Aa
#af49ff on black: 5.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green28.6%
Blue100.0%

CMYK percentages

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

Color previews

#af49ff text on a black background

contrast 5.22:1

Card sample

#af49ff text on a white background

contrast 4.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af49ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af49ff in the Color Lab