Skip to content

#af64fd

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

RGB
175, 100, 253
HSL
269°, 98%, 69%
CMYK
31, 61, 0, 1
Luminance
0.2532

Every format

HEX#af64fd
RGBrgb(175, 100, 253)
HSLhsl(269, 98%, 69%)
CMYKcmyk(31%, 61%, 0%, 1%)
LABlab(57.4 58.3 -65.0)
LCHlch(57.4 87.3 311.8)
OKLCHoklch(0.658 0.221 303.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af64fd on white: 3.46:1
AA ✗ fail · AA-large · AAA
Aa
#af64fd on black: 6.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green39.2%
Blue99.2%

CMYK percentages

Cyan30.8%
Magenta60.5%
Yellow0.0%
Key (black)0.8%

Color previews

#af64fd text on a black background

contrast 6.06:1

Card sample

#af64fd text on a white background

contrast 3.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af64fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af64fd in the Color Lab