Skip to content

#af6dfd

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

RGB
175, 109, 253
HSL
268°, 97%, 71%
CMYK
31, 57, 0, 1
Luminance
0.2714

Every format

HEX#af6dfd
RGBrgb(175, 109, 253)
HSLhsl(268, 97%, 71%)
CMYKcmyk(31%, 57%, 0%, 1%)
LABlab(59.1 53.7 -62.3)
LCHlch(59.1 82.2 310.8)
OKLCHoklch(0.670 0.208 302.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af6dfd on white: 3.27:1
AA ✗ fail · AA-large · AAA
Aa
#af6dfd on black: 6.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green42.7%
Blue99.2%

CMYK percentages

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

Color previews

#af6dfd text on a black background

contrast 6.43:1

Card sample

#af6dfd text on a white background

contrast 3.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af6dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af6dfd in the Color Lab