Skip to content

#ad42df

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

RGB
173, 66, 223
HSL
281°, 71%, 57%
CMYK
22, 70, 0, 13
Luminance
0.1811

Every format

HEX#ad42df
RGBrgb(173, 66, 223)
HSLhsl(281, 71%, 57%)
CMYKcmyk(22%, 70%, 0%, 13%)
LABlab(49.6 66.8 -60.8)
LCHlch(49.6 90.3 317.7)
OKLCHoklch(0.595 0.233 312.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad42df on white: 4.54:1
AA ✓ pass · AA-large · AAA
Aa
#ad42df on black: 4.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green25.9%
Blue87.5%

CMYK percentages

Cyan22.4%
Magenta70.4%
Yellow0.0%
Key (black)12.5%

Color previews

#ad42df text on a black background

contrast 4.62:1

Card sample

#ad42df text on a white background

contrast 4.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad42df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad42df in the Color Lab