Skip to content

#ad2ad5

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

RGB
173, 42, 213
HSL
286°, 67%, 50%
CMYK
19, 80, 0, 17
Luminance
0.1534

Every format

HEX#ad2ad5
RGBrgb(173, 42, 213)
HSLhsl(286, 67%, 50%)
CMYKcmyk(19%, 80%, 0%, 17%)
LABlab(46.1 73.0 -60.7)
LCHlch(46.1 95.0 320.2)
OKLCHoklch(0.568 0.249 316.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.8%
Green16.5%
Blue83.5%

CMYK percentages

Cyan18.8%
Magenta80.3%
Yellow0.0%
Key (black)16.5%

Color previews

#ad2ad5 text on a black background

contrast 4.07:1

Card sample

#ad2ad5 text on a white background

contrast 5.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad2ad5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad2ad5 in the Color Lab