Skip to content

#af6def

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

RGB
175, 109, 239
HSL
271°, 80%, 68%
CMYK
27, 54, 0, 6
Luminance
0.2628

Every format

HEX#af6def
RGBrgb(175, 109, 239)
HSLhsl(271, 80%, 68%)
CMYKcmyk(27%, 54%, 0%, 6%)
LABlab(58.3 50.4 -55.8)
LCHlch(58.3 75.2 312.1)
OKLCHoklch(0.662 0.192 305.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af6def on white: 3.36:1
AA ✗ fail · AA-large · AAA
Aa
#af6def on black: 6.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green42.7%
Blue93.7%

CMYK percentages

Cyan26.8%
Magenta54.4%
Yellow0.0%
Key (black)6.3%

Color previews

#af6def text on a black background

contrast 6.26:1

Card sample

#af6def text on a white background

contrast 3.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af6def

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af6def in the Color Lab