Skip to content

#ad22cd

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

RGB
173, 34, 205
HSL
289°, 72%, 47%
CMYK
16, 83, 0, 20
Luminance
0.1444

Every format

HEX#ad22cd
RGBrgb(173, 34, 205)
HSLhsl(289, 72%, 47%)
CMYKcmyk(16%, 83%, 0%, 20%)
LABlab(44.9 73.6 -58.1)
LCHlch(44.9 93.8 321.7)
OKLCHoklch(0.558 0.248 318.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad22cd on white: 5.40:1
AA ✓ pass · AA-large · AAA
Aa
#ad22cd on black: 3.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green13.3%
Blue80.4%

CMYK percentages

Cyan15.6%
Magenta83.4%
Yellow0.0%
Key (black)19.6%

Color previews

#ad22cd text on a black background

contrast 3.89:1

Card sample

#ad22cd text on a white background

contrast 5.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad22cd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad22cd in the Color Lab