Skip to content

#ab4dff

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

RGB
171, 77, 255
HSL
272°, 100%, 65%
CMYK
33, 70, 0, 0
Luminance
0.2119

Every format

HEX#ab4dff
RGBrgb(171, 77, 255)
HSLhsl(272, 100%, 65%)
CMYKcmyk(33%, 70%, 0%, 0%)
LABlab(53.1 68.6 -73.0)
LCHlch(53.1 100.2 313.2)
OKLCHoklch(0.627 0.251 304.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab4dff on white: 4.01:1
AA ✗ fail · AA-large · AAA
Aa
#ab4dff on black: 5.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green30.2%
Blue100.0%

CMYK percentages

Cyan32.9%
Magenta69.8%
Yellow0.0%
Key (black)0.0%

Color previews

#ab4dff text on a black background

contrast 5.24:1

Card sample

#ab4dff text on a white background

contrast 4.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab4dff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab4dff in the Color Lab