Skip to content

#ad7af4

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

RGB
173, 122, 244
HSL
265°, 85%, 72%
CMYK
29, 50, 0, 4
Luminance
0.2933

Every format

HEX#ad7af4
RGBrgb(173, 122, 244)
HSLhsl(265, 85%, 72%)
CMYKcmyk(29%, 50%, 0%, 4%)
LABlab(61.1 44.1 -54.2)
LCHlch(61.1 69.8 309.1)
OKLCHoklch(0.683 0.178 301.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad7af4 on white: 3.06:1
AA ✗ fail · AA-large · AAA
Aa
#ad7af4 on black: 6.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green47.8%
Blue95.7%

CMYK percentages

Cyan29.1%
Magenta50.0%
Yellow0.0%
Key (black)4.3%

Color previews

#ad7af4 text on a black background

contrast 6.87:1

Card sample

#ad7af4 text on a white background

contrast 3.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(173, 122, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(173, 122, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ad7af4;
background: linear-gradient(135deg, #ad7af4, #F47AEA);

Monochromatic scale

Palettes built from #ad7af4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad7af4 in the Color Lab