Skip to content

#af5dff

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

RGB
175, 93, 255
HSL
270°, 100%, 68%
CMYK
31, 64, 0, 0
Luminance
0.2416

Every format

HEX#af5dff
RGBrgb(175, 93, 255)
HSLhsl(270, 100%, 68%)
CMYKcmyk(31%, 64%, 0%, 0%)
LABlab(56.3 62.1 -68.0)
LCHlch(56.3 92.1 312.4)
OKLCHoklch(0.650 0.232 303.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5dff on white: 3.60:1
AA ✗ fail · AA-large · AAA
Aa
#af5dff on black: 5.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green36.5%
Blue100.0%

CMYK percentages

Cyan31.4%
Magenta63.5%
Yellow0.0%
Key (black)0.0%

Color previews

#af5dff text on a black background

contrast 5.83:1

Card sample

#af5dff text on a white background

contrast 3.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5dff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af5dff in the Color Lab