Skip to content

#af89ff

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

RGB
175, 137, 255
HSL
259°, 100%, 77%
CMYK
31, 46, 0, 0
Luminance
0.3423

Every format

HEX#af89ff
RGBrgb(175, 137, 255)
HSLhsl(259, 100%, 77%)
CMYKcmyk(31%, 46%, 0%, 0%)
LABlab(65.1 39.0 -53.8)
LCHlch(65.1 66.4 306.0)
OKLCHoklch(0.715 0.169 296.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af89ff on white: 2.68:1
AA ✗ fail · AA-large · AAA
Aa
#af89ff on black: 7.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green53.7%
Blue100.0%

CMYK percentages

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

Color previews

#af89ff text on a black background

contrast 7.85:1

Card sample

#af89ff text on a white background

contrast 2.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af89ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af89ff in the Color Lab