Skip to content

#ad7af7

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

RGB
173, 122, 247
HSL
265°, 89%, 72%
CMYK
30, 51, 0, 3
Luminance
0.2952

Every format

HEX#ad7af7
RGBrgb(173, 122, 247)
HSLhsl(265, 89%, 72%)
CMYKcmyk(30%, 51%, 0%, 3%)
LABlab(61.2 44.8 -55.6)
LCHlch(61.2 71.4 308.9)
OKLCHoklch(0.684 0.182 300.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad7af7 on white: 3.04:1
AA ✗ fail · AA-large · AAA
Aa
#ad7af7 on black: 6.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green47.8%
Blue96.9%

CMYK percentages

Cyan30.0%
Magenta50.6%
Yellow0.0%
Key (black)3.1%

Color previews

#ad7af7 text on a black background

contrast 6.90:1

Card sample

#ad7af7 text on a white background

contrast 3.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad7af7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad7af7 in the Color Lab