Skip to content

#ab2fee

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

RGB
171, 47, 238
HSL
279°, 85%, 56%
CMYK
28, 80, 0, 7
Luminance
0.1686

Every format

HEX#ab2fee
RGBrgb(171, 47, 238)
HSLhsl(279, 85%, 56%)
CMYKcmyk(28%, 80%, 0%, 7%)
LABlab(48.1 76.0 -71.7)
LCHlch(48.1 104.5 316.7)
OKLCHoklch(0.587 0.265 309.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2fee on white: 4.80:1
AA ✓ pass · AA-large · AAA
Aa
#ab2fee on black: 4.37:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green18.4%
Blue93.3%

CMYK percentages

Cyan28.2%
Magenta80.3%
Yellow0.0%
Key (black)6.7%

Color previews

#ab2fee text on a black background

contrast 4.37:1

Card sample

#ab2fee text on a white background

contrast 4.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2fee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2fee in the Color Lab