Skip to content

#af6ff2

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

RGB
175, 111, 242
HSL
269°, 83%, 69%
CMYK
28, 54, 0, 5
Luminance
0.2689

Every format

HEX#af6ff2
RGBrgb(175, 111, 242)
HSLhsl(269, 83%, 69%)
CMYKcmyk(28%, 54%, 0%, 5%)
LABlab(58.9 50.0 -56.6)
LCHlch(58.9 75.5 311.5)
OKLCHoklch(0.666 0.193 304.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af6ff2 on white: 3.29:1
AA ✗ fail · AA-large · AAA
Aa
#af6ff2 on black: 6.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green43.5%
Blue94.9%

CMYK percentages

Cyan27.7%
Magenta54.1%
Yellow0.0%
Key (black)5.1%

Color previews

#af6ff2 text on a black background

contrast 6.38:1

Card sample

#af6ff2 text on a white background

contrast 3.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af6ff2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af6ff2 in the Color Lab