Skip to content

#ad51df

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

RGB
173, 81, 223
HSL
279°, 69%, 60%
CMYK
22, 64, 0, 13
Luminance
0.2010

Every format

HEX#ad51df
RGBrgb(173, 81, 223)
HSLhsl(279, 69%, 60%)
CMYKcmyk(22%, 64%, 0%, 13%)
LABlab(52.0 60.3 -57.0)
LCHlch(52.0 83.0 316.6)
OKLCHoklch(0.612 0.215 311.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad51df on white: 4.18:1
AA ✗ fail · AA-large · AAA
Aa
#ad51df on black: 5.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green31.8%
Blue87.5%

CMYK percentages

Cyan22.4%
Magenta63.7%
Yellow0.0%
Key (black)12.5%

Color previews

#ad51df text on a black background

contrast 5.02:1

Card sample

#ad51df text on a white background

contrast 4.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad51df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad51df in the Color Lab