Skip to content

#af7af4

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

RGB
175, 122, 244
HSL
266°, 85%, 72%
CMYK
28, 50, 0, 4
Luminance
0.2956

Every format

HEX#af7af4
RGBrgb(175, 122, 244)
HSLhsl(266, 85%, 72%)
CMYKcmyk(28%, 50%, 0%, 4%)
LABlab(61.3 44.6 -53.9)
LCHlch(61.3 69.9 309.6)
OKLCHoklch(0.685 0.178 302.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green47.8%
Blue95.7%

CMYK percentages

Cyan28.3%
Magenta50.0%
Yellow0.0%
Key (black)4.3%

Color previews

#af7af4 text on a black background

contrast 6.91:1

Card sample

#af7af4 text on a white background

contrast 3.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7af4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7af4 in the Color Lab