Skip to content

#a45df4

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

RGB
164, 93, 244
HSL
268°, 87%, 66%
CMYK
33, 62, 0, 4
Luminance
0.2225

Every format

HEX#a45df4
RGBrgb(164, 93, 244)
HSLhsl(268, 87%, 66%)
CMYKcmyk(33%, 62%, 0%, 4%)
LABlab(54.3 57.3 -65.1)
LCHlch(54.3 86.7 311.3)
OKLCHoklch(0.631 0.218 302.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a45df4 on white: 3.85:1
AA ✗ fail · AA-large · AAA
Aa
#a45df4 on black: 5.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red64.3%
Green36.5%
Blue95.7%

CMYK percentages

Cyan32.8%
Magenta61.9%
Yellow0.0%
Key (black)4.3%

Color previews

#a45df4 text on a black background

contrast 5.45:1

Card sample

#a45df4 text on a white background

contrast 3.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a45df4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a45df4 in the Color Lab