Skip to content

#ad40df

a balanced, vivid violet · warm · closest name: slateblue

RGB
173, 64, 223
HSL
281°, 71%, 56%
CMYK
22, 71, 0, 13
Luminance
0.1788

Every format

HEX#ad40df
RGBrgb(173, 64, 223)
HSLhsl(281, 71%, 56%)
CMYKcmyk(22%, 71%, 0%, 13%)
LABlab(49.4 67.5 -61.2)
LCHlch(49.4 91.1 317.8)
OKLCHoklch(0.593 0.236 312.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad40df on white: 4.59:1
AA ✓ pass · AA-large · AAA
Aa
#ad40df on black: 4.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green25.1%
Blue87.5%

CMYK percentages

Cyan22.4%
Magenta71.3%
Yellow0.0%
Key (black)12.5%

Color previews

#ad40df text on a black background

contrast 4.58:1

Card sample

#ad40df text on a white background

contrast 4.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad40df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad40df in the Color Lab