Skip to content

#a45dfd

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

RGB
164, 93, 253
HSL
267°, 98%, 68%
CMYK
35, 63, 0, 1
Luminance
0.2281

Every format

HEX#a45dfd
RGBrgb(164, 93, 253)
HSLhsl(267, 98%, 68%)
CMYKcmyk(35%, 63%, 0%, 1%)
LABlab(54.9 59.4 -69.2)
LCHlch(54.9 91.2 310.7)
OKLCHoklch(0.637 0.228 300.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a45dfd on white: 3.78:1
AA ✗ fail · AA-large · AAA
Aa
#a45dfd on black: 5.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red64.3%
Green36.5%
Blue99.2%

CMYK percentages

Cyan35.2%
Magenta63.2%
Yellow0.0%
Key (black)0.8%

Color previews

#a45dfd text on a black background

contrast 5.56:1

Card sample

#a45dfd text on a white background

contrast 3.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a45dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a45dfd in the Color Lab