Skip to content

#aa7fdf

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

RGB
170, 127, 223
HSL
267°, 60%, 69%
CMYK
24, 43, 0, 13
Luminance
0.2905

Every format

HEX#aa7fdf
RGBrgb(170, 127, 223)
HSLhsl(267, 60%, 69%)
CMYKcmyk(24%, 43%, 0%, 13%)
LABlab(60.8 35.5 -42.9)
LCHlch(60.8 55.7 309.6)
OKLCHoklch(0.677 0.144 303.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa7fdf on white: 3.08:1
AA ✗ fail · AA-large · AAA
Aa
#aa7fdf on black: 6.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green49.8%
Blue87.5%

CMYK percentages

Cyan23.8%
Magenta43.0%
Yellow0.0%
Key (black)12.5%

Color previews

#aa7fdf text on a black background

contrast 6.81:1

Card sample

#aa7fdf text on a white background

contrast 3.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa7fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa7fdf in the Color Lab