Skip to content

#ab9dfb

a light, electric blue · warm · closest name: plum

RGB
171, 157, 251
HSL
249°, 92%, 80%
CMYK
32, 38, 0, 2
Luminance
0.3974

Every format

HEX#ab9dfb
RGBrgb(171, 157, 251)
HSLhsl(249, 92%, 80%)
CMYKcmyk(32%, 38%, 0%, 2%)
LABlab(69.3 25.7 -45.1)
LCHlch(69.3 51.9 299.7)
OKLCHoklch(0.745 0.134 289.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab9dfb on white: 2.35:1
AA ✗ fail · AA-large · AAA
Aa
#ab9dfb on black: 8.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green61.6%
Blue98.4%

CMYK percentages

Cyan31.9%
Magenta37.5%
Yellow0.0%
Key (black)1.6%

Color previews

#ab9dfb text on a black background

contrast 8.95:1

Card sample

#ab9dfb text on a white background

contrast 2.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab9dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab9dfb in the Color Lab