Skip to content

#aa7fd2

a light, vivid violet · warm · closest name: plum

RGB
170, 127, 210
HSL
271°, 48%, 66%
CMYK
19, 40, 0, 18
Luminance
0.2838

Every format

HEX#aa7fd2
RGBrgb(170, 127, 210)
HSLhsl(271, 48%, 66%)
CMYKcmyk(19%, 40%, 0%, 18%)
LABlab(60.2 32.5 -36.6)
LCHlch(60.2 49.0 311.6)
OKLCHoklch(0.670 0.127 307.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa7fd2 on white: 3.15:1
AA ✗ fail · AA-large · AAA
Aa
#aa7fd2 on black: 6.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green49.8%
Blue82.4%

CMYK percentages

Cyan19.0%
Magenta39.5%
Yellow0.0%
Key (black)17.6%

Color previews

#aa7fd2 text on a black background

contrast 6.68:1

Card sample

#aa7fd2 text on a white background

contrast 3.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa7fd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa7fd2 in the Color Lab