Skip to content

#af6df0

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

RGB
175, 109, 240
HSL
270°, 81%, 68%
CMYK
27, 55, 0, 6
Luminance
0.2634

Every format

HEX#af6df0
RGBrgb(175, 109, 240)
HSLhsl(270, 81%, 68%)
CMYKcmyk(27%, 55%, 0%, 6%)
LABlab(58.4 50.6 -56.3)
LCHlch(58.4 75.7 312.0)
OKLCHoklch(0.662 0.194 305.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af6df0 on white: 3.35:1
AA ✗ fail · AA-large · AAA
Aa
#af6df0 on black: 6.27:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green42.7%
Blue94.1%

CMYK percentages

Cyan27.1%
Magenta54.6%
Yellow0.0%
Key (black)5.9%

Color previews

#af6df0 text on a black background

contrast 6.27:1

Card sample

#af6df0 text on a white background

contrast 3.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af6df0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af6df0 in the Color Lab