Skip to content

#a45fdf

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

RGB
164, 95, 223
HSL
272°, 67%, 62%
CMYK
27, 57, 0, 13
Luminance
0.2140

Every format

HEX#a45fdf
RGBrgb(164, 95, 223)
HSLhsl(272, 67%, 62%)
CMYKcmyk(27%, 57%, 0%, 13%)
LABlab(53.4 51.3 -54.8)
LCHlch(53.4 75.1 313.1)
OKLCHoklch(0.620 0.192 306.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a45fdf on white: 3.98:1
AA ✗ fail · AA-large · AAA
Aa
#a45fdf on black: 5.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red64.3%
Green37.3%
Blue87.5%

CMYK percentages

Cyan26.5%
Magenta57.4%
Yellow0.0%
Key (black)12.5%

Color previews

#a45fdf text on a black background

contrast 5.28:1

Card sample

#a45fdf text on a white background

contrast 3.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a45fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a45fdf in the Color Lab