Skip to content

#aa2dfe

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

RGB
170, 45, 254
HSL
276°, 99%, 59%
CMYK
33, 82, 0, 0
Luminance
0.1758

Every format

HEX#aa2dfe
RGBrgb(170, 45, 254)
HSLhsl(276, 99%, 59%)
CMYKcmyk(33%, 82%, 0%, 0%)
LABlab(49.0 79.7 -79.3)
LCHlch(49.0 112.4 315.1)
OKLCHoklch(0.597 0.280 306.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa2dfe on white: 4.65:1
AA ✓ pass · AA-large · AAA
Aa
#aa2dfe on black: 4.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan33.1%
Magenta82.3%
Yellow0.0%
Key (black)0.4%

Color previews

#aa2dfe text on a black background

contrast 4.52:1

Card sample

#aa2dfe text on a white background

contrast 4.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa2dfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa2dfe in the Color Lab