Skip to content

#a040df

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

RGB
160, 64, 223
HSL
276°, 71%, 56%
CMYK
28, 71, 0, 13
Luminance
0.1647

Every format

HEX#a040df
RGBrgb(160, 64, 223)
HSLhsl(276, 71%, 56%)
CMYKcmyk(28%, 71%, 0%, 13%)
LABlab(47.6 65.0 -64.1)
LCHlch(47.6 91.3 315.4)
OKLCHoklch(0.577 0.232 308.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a040df on white: 4.89:1
AA ✓ pass · AA-large · AAA
Aa
#a040df on black: 4.29:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.7%
Green25.1%
Blue87.5%

CMYK percentages

Cyan28.3%
Magenta71.3%
Yellow0.0%
Key (black)12.5%

Color previews

#a040df text on a black background

contrast 4.29:1

Card sample

#a040df text on a white background

contrast 4.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a040df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a040df in the Color Lab