Skip to content

#ab79ff

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

RGB
171, 121, 255
HSL
262°, 100%, 74%
CMYK
33, 53, 0, 0
Luminance
0.2955

Every format

HEX#ab79ff
RGBrgb(171, 121, 255)
HSLhsl(262, 100%, 74%)
CMYKcmyk(33%, 53%, 0%, 0%)
LABlab(61.3 46.8 -60.0)
LCHlch(61.3 76.1 308.0)
OKLCHoklch(0.686 0.193 298.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab79ff on white: 3.04:1
AA ✗ fail · AA-large · AAA
Aa
#ab79ff on black: 6.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green47.5%
Blue100.0%

CMYK percentages

Cyan32.9%
Magenta52.5%
Yellow0.0%
Key (black)0.0%

Color previews

#ab79ff text on a black background

contrast 6.91:1

Card sample

#ab79ff text on a white background

contrast 3.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab79ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab79ff in the Color Lab