Skip to content

#ab3dfd

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

RGB
171, 61, 253
HSL
274°, 98%, 62%
CMYK
32, 76, 0, 1
Luminance
0.1909

Every format

HEX#ab3dfd
RGBrgb(171, 61, 253)
HSLhsl(274, 98%, 62%)
CMYKcmyk(32%, 76%, 0%, 1%)
LABlab(50.8 74.5 -75.8)
LCHlch(50.8 106.3 314.5)
OKLCHoklch(0.610 0.266 305.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab3dfd on white: 4.36:1
AA ✗ fail · AA-large · AAA
Aa
#ab3dfd on black: 4.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green23.9%
Blue99.2%

CMYK percentages

Cyan32.4%
Magenta75.9%
Yellow0.0%
Key (black)0.8%

Color previews

#ab3dfd text on a black background

contrast 4.82:1

Card sample

#ab3dfd text on a white background

contrast 4.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab3dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab3dfd in the Color Lab