Skip to content

#af5df6

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

RGB
175, 93, 246
HSL
272°, 90%, 67%
CMYK
29, 62, 0, 4
Luminance
0.2360

Every format

HEX#af5df6
RGBrgb(175, 93, 246)
HSLhsl(272, 90%, 67%)
CMYKcmyk(29%, 62%, 0%, 4%)
LABlab(55.7 60.1 -63.9)
LCHlch(55.7 87.7 313.2)
OKLCHoklch(0.644 0.223 305.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5df6 on white: 3.67:1
AA ✗ fail · AA-large · AAA
Aa
#af5df6 on black: 5.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green36.5%
Blue96.5%

CMYK percentages

Cyan28.9%
Magenta62.2%
Yellow0.0%
Key (black)3.5%

Color previews

#af5df6 text on a black background

contrast 5.72:1

Card sample

#af5df6 text on a white background

contrast 3.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5df6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af5df6 in the Color Lab