Skip to content

#ab4fdb

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

RGB
171, 79, 219
HSL
279°, 66%, 58%
CMYK
22, 64, 0, 14
Luminance
0.1936

Every format

HEX#ab4fdb
RGBrgb(171, 79, 219)
HSLhsl(279, 66%, 58%)
CMYKcmyk(22%, 64%, 0%, 14%)
LABlab(51.1 59.9 -56.1)
LCHlch(51.1 82.1 316.9)
OKLCHoklch(0.605 0.213 312.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab4fdb on white: 4.31:1
AA ✗ fail · AA-large · AAA
Aa
#ab4fdb on black: 4.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green31.0%
Blue85.9%

CMYK percentages

Cyan21.9%
Magenta63.9%
Yellow0.0%
Key (black)14.1%

Color previews

#ab4fdb text on a black background

contrast 4.87:1

Card sample

#ab4fdb text on a white background

contrast 4.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab4fdb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab4fdb in the Color Lab