Skip to content

#aa4dfd

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

RGB
170, 77, 253
HSL
272°, 98%, 65%
CMYK
33, 70, 0, 1
Luminance
0.2095

Every format

HEX#aa4dfd
RGBrgb(170, 77, 253)
HSLhsl(272, 98%, 65%)
CMYKcmyk(33%, 70%, 0%, 1%)
LABlab(52.9 68.0 -72.3)
LCHlch(52.9 99.3 313.2)
OKLCHoklch(0.624 0.249 304.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa4dfd on white: 4.05:1
AA ✗ fail · AA-large · AAA
Aa
#aa4dfd on black: 5.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green30.2%
Blue99.2%

CMYK percentages

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

Color previews

#aa4dfd text on a black background

contrast 5.19:1

Card sample

#aa4dfd text on a white background

contrast 4.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa4dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa4dfd in the Color Lab