Skip to content

#ab50df

a balanced, vivid violet · warm · closest name: slateblue

RGB
171, 80, 223
HSL
278°, 69%, 59%
CMYK
23, 64, 0, 13
Luminance
0.1972

Every format

HEX#ab50df
RGBrgb(171, 80, 223)
HSLhsl(278, 69%, 59%)
CMYKcmyk(23%, 64%, 0%, 13%)
LABlab(51.5 60.3 -57.7)
LCHlch(51.5 83.5 316.3)
OKLCHoklch(0.608 0.215 310.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab50df on white: 4.25:1
AA ✗ fail · AA-large · AAA
Aa
#ab50df on black: 4.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green31.4%
Blue87.5%

CMYK percentages

Cyan23.3%
Magenta64.1%
Yellow0.0%
Key (black)12.5%

Color previews

#ab50df text on a black background

contrast 4.94:1

Card sample

#ab50df text on a white background

contrast 4.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab50df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab50df in the Color Lab