Skip to content

#af7afd

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

RGB
175, 122, 253
HSL
264°, 97%, 74%
CMYK
31, 52, 0, 1
Luminance
0.3012

Every format

HEX#af7afd
RGBrgb(175, 122, 253)
HSLhsl(264, 97%, 74%)
CMYKcmyk(31%, 52%, 0%, 1%)
LABlab(61.8 46.8 -58.0)
LCHlch(61.8 74.5 308.9)
OKLCHoklch(0.690 0.189 300.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7afd on white: 2.99:1
AA ✗ fail · AA-large · AAA
Aa
#af7afd on black: 7.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green47.8%
Blue99.2%

CMYK percentages

Cyan30.8%
Magenta51.8%
Yellow0.0%
Key (black)0.8%

Color previews

#af7afd text on a black background

contrast 7.02:1

Card sample

#af7afd text on a white background

contrast 2.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7afd in the Color Lab