Skip to content

#af7df7

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

RGB
175, 125, 247
HSL
265°, 88%, 73%
CMYK
29, 49, 0, 3
Luminance
0.3050

Every format

HEX#af7df7
RGBrgb(175, 125, 247)
HSLhsl(265, 88%, 73%)
CMYKcmyk(29%, 49%, 0%, 3%)
LABlab(62.1 43.7 -54.2)
LCHlch(62.1 69.6 308.8)
OKLCHoklch(0.691 0.178 300.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7df7 on white: 2.96:1
AA ✗ fail · AA-large · AAA
Aa
#af7df7 on black: 7.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green49.0%
Blue96.9%

CMYK percentages

Cyan29.1%
Magenta49.4%
Yellow0.0%
Key (black)3.1%

Color previews

#af7df7 text on a black background

contrast 7.10:1

Card sample

#af7df7 text on a white background

contrast 2.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7df7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7df7 in the Color Lab