Skip to content

#aa55ff

a light, electric violet · warm · closest name: slateblue

RGB
170, 85, 255
HSL
270°, 100%, 67%
CMYK
33, 67, 0, 0
Luminance
0.2226

Every format

HEX#aa55ff
RGBrgb(170, 85, 255)
HSLhsl(270, 100%, 67%)
CMYKcmyk(33%, 67%, 0%, 0%)
LABlab(54.3 64.9 -71.2)
LCHlch(54.3 96.3 312.4)
OKLCHoklch(0.635 0.241 303.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa55ff on white: 3.85:1
AA ✗ fail · AA-large · AAA
Aa
#aa55ff on black: 5.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green33.3%
Blue100.0%

CMYK percentages

Cyan33.3%
Magenta66.7%
Yellow0.0%
Key (black)0.0%

Color previews

#aa55ff text on a black background

contrast 5.45:1

Card sample

#aa55ff text on a white background

contrast 3.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa55ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa55ff in the Color Lab