Skip to content

#aa2cfd

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

RGB
170, 44, 253
HSL
276°, 98%, 58%
CMYK
33, 83, 0, 1
Luminance
0.1744

Every format

HEX#aa2cfd
RGBrgb(170, 44, 253)
HSLhsl(276, 98%, 58%)
CMYKcmyk(33%, 83%, 0%, 1%)
LABlab(48.8 79.7 -79.0)
LCHlch(48.8 112.2 315.3)
OKLCHoklch(0.595 0.279 306.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa2cfd on white: 4.68:1
AA ✓ pass · AA-large · AAA
Aa
#aa2cfd on black: 4.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green17.3%
Blue99.2%

CMYK percentages

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

Color previews

#aa2cfd text on a black background

contrast 4.49:1

Card sample

#aa2cfd text on a white background

contrast 4.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa2cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa2cfd in the Color Lab