Skip to content

#af5dfd

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

RGB
175, 93, 253
HSL
271°, 98%, 68%
CMYK
31, 63, 0, 1
Luminance
0.2403

Every format

HEX#af5dfd
RGBrgb(175, 93, 253)
HSLhsl(271, 98%, 68%)
CMYKcmyk(31%, 63%, 0%, 1%)
LABlab(56.1 61.7 -67.1)
LCHlch(56.1 91.1 312.6)
OKLCHoklch(0.648 0.230 304.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5dfd on white: 3.62:1
AA ✗ fail · AA-large · AAA
Aa
#af5dfd on black: 5.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green36.5%
Blue99.2%

CMYK percentages

Cyan30.8%
Magenta63.2%
Yellow0.0%
Key (black)0.8%

Color previews

#af5dfd text on a black background

contrast 5.81:1

Card sample

#af5dfd text on a white background

contrast 3.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af5dfd in the Color Lab