Skip to content

#aa2eee

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

RGB
170, 46, 238
HSL
279°, 85%, 56%
CMYK
29, 81, 0, 7
Luminance
0.1667

Every format

HEX#aa2eee
RGBrgb(170, 46, 238)
HSLhsl(279, 85%, 56%)
CMYKcmyk(29%, 81%, 0%, 7%)
LABlab(47.9 76.2 -72.1)
LCHlch(47.9 104.9 316.6)
OKLCHoklch(0.585 0.265 309.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa2eee on white: 4.84:1
AA ✓ pass · AA-large · AAA
Aa
#aa2eee on black: 4.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green18.0%
Blue93.3%

CMYK percentages

Cyan28.6%
Magenta80.7%
Yellow0.0%
Key (black)6.7%

Color previews

#aa2eee text on a black background

contrast 4.33:1

Card sample

#aa2eee text on a white background

contrast 4.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa2eee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa2eee in the Color Lab