Skip to content

#aa2ab4

a dark, vivid magenta / pink · warm · closest name: purple

RGB
170, 42, 180
HSL
296°, 62%, 44%
CMYK
6, 77, 0, 29
Luminance
0.1350

Every format

HEX#aa2ab4
RGBrgb(170, 42, 180)
HSLhsl(296, 62%, 44%)
CMYKcmyk(6%, 77%, 0%, 29%)
LABlab(43.5 66.6 -45.7)
LCHlch(43.5 80.8 325.5)
OKLCHoklch(0.542 0.221 324.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa2ab4 on white: 5.68:1
AA ✓ pass · AA-large · AAA
Aa
#aa2ab4 on black: 3.70:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green16.5%
Blue70.6%

CMYK percentages

Cyan5.6%
Magenta76.7%
Yellow0.0%
Key (black)29.4%

Color previews

#aa2ab4 text on a black background

contrast 3.70:1

Card sample

#aa2ab4 text on a white background

contrast 5.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa2ab4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa2ab4 in the Color Lab