Skip to content

#ab39df

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

RGB
171, 57, 223
HSL
281°, 72%, 55%
CMYK
23, 74, 0, 13
Luminance
0.1691

Every format

HEX#ab39df
RGBrgb(171, 57, 223)
HSLhsl(281, 72%, 55%)
CMYKcmyk(23%, 74%, 0%, 13%)
LABlab(48.1 69.8 -63.1)
LCHlch(48.1 94.1 317.9)
OKLCHoklch(0.584 0.242 312.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab39df on white: 4.79:1
AA ✓ pass · AA-large · AAA
Aa
#ab39df on black: 4.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green22.4%
Blue87.5%

CMYK percentages

Cyan23.3%
Magenta74.4%
Yellow0.0%
Key (black)12.5%

Color previews

#ab39df text on a black background

contrast 4.38:1

Card sample

#ab39df text on a white background

contrast 4.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab39df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab39df in the Color Lab