Skip to content

#af49eb

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

RGB
175, 73, 235
HSL
278°, 80%, 60%
CMYK
26, 69, 0, 8
Luminance
0.1988

Every format

HEX#af49eb
RGBrgb(175, 73, 235)
HSLhsl(278, 80%, 60%)
CMYKcmyk(26%, 69%, 0%, 8%)
LABlab(51.7 66.8 -64.2)
LCHlch(51.7 92.6 316.1)
OKLCHoklch(0.613 0.237 310.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af49eb on white: 4.22:1
AA ✗ fail · AA-large · AAA
Aa
#af49eb on black: 4.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green28.6%
Blue92.2%

CMYK percentages

Cyan25.5%
Magenta68.9%
Yellow0.0%
Key (black)7.8%

Color previews

#af49eb text on a black background

contrast 4.98:1

Card sample

#af49eb text on a white background

contrast 4.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af49eb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af49eb in the Color Lab