Skip to content

#ad22df

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

RGB
173, 34, 223
HSL
284°, 75%, 50%
CMYK
22, 85, 0, 13
Luminance
0.1536

Every format

HEX#ad22df
RGBrgb(173, 34, 223)
HSLhsl(284, 75%, 50%)
CMYKcmyk(22%, 85%, 0%, 13%)
LABlab(46.1 76.9 -66.4)
LCHlch(46.1 101.6 319.2)
OKLCHoklch(0.571 0.263 314.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad22df on white: 5.16:1
AA ✓ pass · AA-large · AAA
Aa
#ad22df on black: 4.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green13.3%
Blue87.5%

CMYK percentages

Cyan22.4%
Magenta84.8%
Yellow0.0%
Key (black)12.5%

Color previews

#ad22df text on a black background

contrast 4.07:1

Card sample

#ad22df text on a white background

contrast 5.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad22df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad22df in the Color Lab