Skip to content

#af6dfb

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

RGB
175, 109, 251
HSL
268°, 95%, 71%
CMYK
30, 57, 0, 2
Luminance
0.2702

Every format

HEX#af6dfb
RGBrgb(175, 109, 251)
HSLhsl(268, 95%, 71%)
CMYKcmyk(30%, 57%, 0%, 2%)
LABlab(59.0 53.2 -61.4)
LCHlch(59.0 81.2 310.9)
OKLCHoklch(0.669 0.206 302.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af6dfb on white: 3.28:1
AA ✗ fail · AA-large · AAA
Aa
#af6dfb on black: 6.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green42.7%
Blue98.4%

CMYK percentages

Cyan30.3%
Magenta56.6%
Yellow0.0%
Key (black)1.6%

Color previews

#af6dfb text on a black background

contrast 6.40:1

Card sample

#af6dfb text on a white background

contrast 3.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af6dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af6dfb in the Color Lab