Skip to content

#ab4cef

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

RGB
171, 76, 239
HSL
275°, 84%, 62%
CMYK
29, 68, 0, 6
Luminance
0.2006

Every format

HEX#ab4cef
RGBrgb(171, 76, 239)
HSLhsl(275, 84%, 62%)
CMYKcmyk(29%, 68%, 0%, 6%)
LABlab(51.9 65.5 -66.1)
LCHlch(51.9 93.1 314.7)
OKLCHoklch(0.614 0.236 307.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab4cef on white: 4.19:1
AA ✗ fail · AA-large · AAA
Aa
#ab4cef on black: 5.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green29.8%
Blue93.7%

CMYK percentages

Cyan28.5%
Magenta68.2%
Yellow0.0%
Key (black)6.3%

Color previews

#ab4cef text on a black background

contrast 5.01:1

Card sample

#ab4cef text on a white background

contrast 4.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab4cef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab4cef in the Color Lab