Skip to content

#ab89ff

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

RGB
171, 137, 255
HSL
257°, 100%, 77%
CMYK
33, 46, 0, 0
Luminance
0.3377

Every format

HEX#ab89ff
RGBrgb(171, 137, 255)
HSLhsl(257, 100%, 77%)
CMYKcmyk(33%, 46%, 0%, 0%)
LABlab(64.8 38.0 -54.4)
LCHlch(64.8 66.3 304.9)
OKLCHoklch(0.712 0.169 295.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab89ff on white: 2.71:1
AA ✗ fail · AA-large · AAA
Aa
#ab89ff on black: 7.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green53.7%
Blue100.0%

CMYK percentages

Cyan32.9%
Magenta46.3%
Yellow0.0%
Key (black)0.0%

Color previews

#ab89ff text on a black background

contrast 7.75:1

Card sample

#ab89ff text on a white background

contrast 2.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab89ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab89ff in the Color Lab