Skip to content

#ad5dfb

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

RGB
173, 93, 251
HSL
270°, 95%, 68%
CMYK
31, 63, 0, 2
Luminance
0.2368

Every format

HEX#ad5dfb
RGBrgb(173, 93, 251)
HSLhsl(270, 95%, 68%)
CMYKcmyk(31%, 63%, 0%, 2%)
LABlab(55.8 60.8 -66.6)
LCHlch(55.8 90.2 312.4)
OKLCHoklch(0.645 0.228 304.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad5dfb on white: 3.66:1
AA ✗ fail · AA-large · AAA
Aa
#ad5dfb on black: 5.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green36.5%
Blue98.4%

CMYK percentages

Cyan31.1%
Magenta62.9%
Yellow0.0%
Key (black)1.6%

Color previews

#ad5dfb text on a black background

contrast 5.74:1

Card sample

#ad5dfb text on a white background

contrast 3.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad5dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad5dfb in the Color Lab