Skip to content

#aa2ad5

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

RGB
170, 42, 213
HSL
285°, 67%, 50%
CMYK
20, 80, 0, 17
Luminance
0.1501

Every format

HEX#aa2ad5
RGBrgb(170, 42, 213)
HSLhsl(285, 67%, 50%)
CMYKcmyk(20%, 80%, 0%, 17%)
LABlab(45.6 72.5 -61.5)
LCHlch(45.6 95.1 319.7)
OKLCHoklch(0.564 0.248 315.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa2ad5 on white: 5.25:1
AA ✓ pass · AA-large · AAA
Aa
#aa2ad5 on black: 4.00:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green16.5%
Blue83.5%

CMYK percentages

Cyan20.2%
Magenta80.3%
Yellow0.0%
Key (black)16.5%

Color previews

#aa2ad5 text on a black background

contrast 4.00:1

Card sample

#aa2ad5 text on a white background

contrast 5.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa2ad5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa2ad5 in the Color Lab