Skip to content

#af6df8

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

RGB
175, 109, 248
HSL
269°, 91%, 70%
CMYK
29, 56, 0, 3
Luminance
0.2683

Every format

HEX#af6df8
RGBrgb(175, 109, 248)
HSLhsl(269, 91%, 70%)
CMYKcmyk(29%, 56%, 0%, 3%)
LABlab(58.8 52.5 -60.0)
LCHlch(58.8 79.7 311.2)
OKLCHoklch(0.667 0.203 303.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af6df8 on white: 3.30:1
AA ✗ fail · AA-large · AAA
Aa
#af6df8 on black: 6.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green42.7%
Blue97.3%

CMYK percentages

Cyan29.4%
Magenta56.0%
Yellow0.0%
Key (black)2.7%

Color previews

#af6df8 text on a black background

contrast 6.37:1

Card sample

#af6df8 text on a white background

contrast 3.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af6df8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af6df8 in the Color Lab