Skip to content

#af8eff

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

RGB
175, 142, 255
HSL
258°, 100%, 78%
CMYK
31, 44, 0, 0
Luminance
0.3568

Every format

HEX#af8eff
RGBrgb(175, 142, 255)
HSLhsl(258, 100%, 78%)
CMYKcmyk(31%, 44%, 0%, 0%)
LABlab(66.3 36.2 -52.0)
LCHlch(66.3 63.3 304.9)
OKLCHoklch(0.724 0.162 295.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af8eff on white: 2.58:1
AA ✗ fail · AA-large · AAA
Aa
#af8eff on black: 8.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green55.7%
Blue100.0%

CMYK percentages

Cyan31.4%
Magenta44.3%
Yellow0.0%
Key (black)0.0%

Color previews

#af8eff text on a black background

contrast 8.14:1

Card sample

#af8eff text on a white background

contrast 2.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af8eff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af8eff in the Color Lab