Skip to content

#af7df9

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

RGB
175, 125, 249
HSL
264°, 91%, 73%
CMYK
30, 50, 0, 2
Luminance
0.3062

Every format

HEX#af7df9
RGBrgb(175, 125, 249)
HSLhsl(264, 91%, 73%)
CMYKcmyk(30%, 50%, 0%, 2%)
LABlab(62.2 44.1 -55.2)
LCHlch(62.2 70.7 308.7)
OKLCHoklch(0.692 0.180 300.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7df9 on white: 2.95:1
AA ✗ fail · AA-large · AAA
Aa
#af7df9 on black: 7.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green49.0%
Blue97.6%

CMYK percentages

Cyan29.7%
Magenta49.8%
Yellow0.0%
Key (black)2.4%

Color previews

#af7df9 text on a black background

contrast 7.12:1

Card sample

#af7df9 text on a white background

contrast 2.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7df9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7df9 in the Color Lab