Skip to content

#af7df5

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

RGB
175, 125, 245
HSL
265°, 86%, 73%
CMYK
29, 49, 0, 4
Luminance
0.3037

Every format

HEX#af7df5
RGBrgb(175, 125, 245)
HSLhsl(265, 86%, 73%)
CMYKcmyk(29%, 49%, 0%, 4%)
LABlab(62.0 43.2 -53.3)
LCHlch(62.0 68.6 309.0)
OKLCHoklch(0.690 0.175 301.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7df5 on white: 2.97:1
AA ✗ fail · AA-large · AAA
Aa
#af7df5 on black: 7.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green49.0%
Blue96.1%

CMYK percentages

Cyan28.6%
Magenta49.0%
Yellow0.0%
Key (black)3.9%

Color previews

#af7df5 text on a black background

contrast 7.07:1

Card sample

#af7df5 text on a white background

contrast 2.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7df5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7df5 in the Color Lab