Skip to content

#ad22dd

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

RGB
173, 34, 221
HSL
285°, 73%, 50%
CMYK
22, 85, 0, 13
Luminance
0.1525

Every format

HEX#ad22dd
RGBrgb(173, 34, 221)
HSLhsl(285, 73%, 50%)
CMYKcmyk(22%, 85%, 0%, 13%)
LABlab(46.0 76.5 -65.5)
LCHlch(46.0 100.7 319.4)
OKLCHoklch(0.569 0.261 314.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad22dd on white: 5.19:1
AA ✓ pass · AA-large · AAA
Aa
#ad22dd on black: 4.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green13.3%
Blue86.7%

CMYK percentages

Cyan21.7%
Magenta84.6%
Yellow0.0%
Key (black)13.3%

Color previews

#ad22dd text on a black background

contrast 4.05:1

Card sample

#ad22dd text on a white background

contrast 5.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad22dd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad22dd in the Color Lab