Skip to content

#a451cd

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

RGB
164, 81, 205
HSL
280°, 55%, 56%
CMYK
20, 61, 0, 20
Luminance
0.1819

Every format

HEX#a451cd
RGBrgb(164, 81, 205)
HSLhsl(280, 55%, 56%)
CMYKcmyk(20%, 61%, 0%, 20%)
LABlab(49.7 54.4 -50.4)
LCHlch(49.7 74.1 317.2)
OKLCHoklch(0.590 0.193 312.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a451cd on white: 4.53:1
AA ✓ pass · AA-large · AAA
Aa
#a451cd on black: 4.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red64.3%
Green31.8%
Blue80.4%

CMYK percentages

Cyan20.0%
Magenta60.5%
Yellow0.0%
Key (black)19.6%

Color previews

#a451cd text on a black background

contrast 4.64:1

Card sample

#a451cd text on a white background

contrast 4.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(164, 81, 205, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(164, 81, 205, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a451cd;
background: linear-gradient(135deg, #a451cd, #CD51A3);

Monochromatic scale

Palettes built from #a451cd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a451cd in the Color Lab