Skip to content

#ad20df

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

RGB
173, 32, 223
HSL
284°, 75%, 50%
CMYK
22, 86, 0, 13
Luminance
0.1524

Every format

HEX#ad20df
RGBrgb(173, 32, 223)
HSLhsl(284, 75%, 50%)
CMYKcmyk(22%, 86%, 0%, 13%)
LABlab(46.0 77.3 -66.7)
LCHlch(46.0 102.1 319.2)
OKLCHoklch(0.570 0.264 314.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.8%
Green12.5%
Blue87.5%

CMYK percentages

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

Color previews

#ad20df text on a black background

contrast 4.05:1

Card sample

#ad20df text on a white background

contrast 5.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad20df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad20df in the Color Lab