Skip to content

#aa2dfd

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

RGB
170, 45, 253
HSL
276°, 98%, 58%
CMYK
33, 82, 0, 1
Luminance
0.1751

Every format

HEX#aa2dfd
RGBrgb(170, 45, 253)
HSLhsl(276, 98%, 58%)
CMYKcmyk(33%, 82%, 0%, 1%)
LABlab(48.9 79.5 -78.8)
LCHlch(48.9 111.9 315.2)
OKLCHoklch(0.596 0.279 306.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa2dfd on white: 4.66:1
AA ✓ pass · AA-large · AAA
Aa
#aa2dfd on black: 4.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green17.6%
Blue99.2%

CMYK percentages

Cyan32.8%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#aa2dfd text on a black background

contrast 4.50:1

Card sample

#aa2dfd text on a white background

contrast 4.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa2dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa2dfd in the Color Lab