Skip to content

#a45cdf

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

RGB
164, 92, 223
HSL
273°, 67%, 62%
CMYK
27, 59, 0, 13
Luminance
0.2087

Every format

HEX#a45cdf
RGBrgb(164, 92, 223)
HSLhsl(273, 67%, 62%)
CMYKcmyk(27%, 59%, 0%, 13%)
LABlab(52.8 52.9 -55.7)
LCHlch(52.8 76.8 313.5)
OKLCHoklch(0.616 0.196 306.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a45cdf on white: 4.06:1
AA ✗ fail · AA-large · AAA
Aa
#a45cdf on black: 5.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red64.3%
Green36.1%
Blue87.5%

CMYK percentages

Cyan26.5%
Magenta58.7%
Yellow0.0%
Key (black)12.5%

Color previews

#a45cdf text on a black background

contrast 5.17:1

Card sample

#a45cdf text on a white background

contrast 4.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a45cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a45cdf in the Color Lab