Skip to content

#ab3dfb

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

RGB
171, 61, 251
HSL
275°, 96%, 61%
CMYK
32, 76, 0, 2
Luminance
0.1896

Every format

HEX#ab3dfb
RGBrgb(171, 61, 251)
HSLhsl(275, 96%, 61%)
CMYKcmyk(32%, 76%, 0%, 2%)
LABlab(50.6 74.1 -74.9)
LCHlch(50.6 105.3 314.7)
OKLCHoklch(0.608 0.264 306.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.1%
Green23.9%
Blue98.4%

CMYK percentages

Cyan31.9%
Magenta75.7%
Yellow0.0%
Key (black)1.6%

Color previews

#ab3dfb text on a black background

contrast 4.79:1

Card sample

#ab3dfb text on a white background

contrast 4.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab3dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab3dfb in the Color Lab