Skip to content

#ab3fdf

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

RGB
171, 63, 223
HSL
281°, 71%, 56%
CMYK
23, 72, 0, 13
Luminance
0.1754

Every format

HEX#ab3fdf
RGBrgb(171, 63, 223)
HSLhsl(281, 71%, 56%)
CMYKcmyk(23%, 72%, 0%, 13%)
LABlab(48.9 67.5 -61.9)
LCHlch(48.9 91.6 317.5)
OKLCHoklch(0.590 0.236 312.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab3fdf on white: 4.66:1
AA ✓ pass · AA-large · AAA
Aa
#ab3fdf on black: 4.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green24.7%
Blue87.5%

CMYK percentages

Cyan23.3%
Magenta71.7%
Yellow0.0%
Key (black)12.5%

Color previews

#ab3fdf text on a black background

contrast 4.51:1

Card sample

#ab3fdf text on a white background

contrast 4.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab3fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab3fdf in the Color Lab