Skip to content

#ad2cd2

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

RGB
173, 44, 210
HSL
287°, 65%, 50%
CMYK
18, 79, 0, 18
Luminance
0.1534

Every format

HEX#ad2cd2
RGBrgb(173, 44, 210)
HSLhsl(287, 65%, 50%)
CMYKcmyk(18%, 79%, 0%, 18%)
LABlab(46.1 71.9 -59.0)
LCHlch(46.1 93.0 320.6)
OKLCHoklch(0.568 0.244 317.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.8%
Green17.3%
Blue82.4%

CMYK percentages

Cyan17.6%
Magenta79.0%
Yellow0.0%
Key (black)17.6%

Color previews

#ad2cd2 text on a black background

contrast 4.07:1

Card sample

#ad2cd2 text on a white background

contrast 5.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad2cd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad2cd2 in the Color Lab