Skip to content

#a04df2

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

RGB
160, 77, 242
HSL
270°, 86%, 63%
CMYK
34, 68, 0, 5
Luminance
0.1919

Every format

HEX#a04df2
RGBrgb(160, 77, 242)
HSLhsl(270, 86%, 63%)
CMYKcmyk(34%, 68%, 0%, 5%)
LABlab(50.9 63.6 -69.5)
LCHlch(50.9 94.2 312.5)
OKLCHoklch(0.605 0.235 302.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a04df2 on white: 4.34:1
AA ✗ fail · AA-large · AAA
Aa
#a04df2 on black: 4.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.7%
Green30.2%
Blue94.9%

CMYK percentages

Cyan33.9%
Magenta68.2%
Yellow0.0%
Key (black)5.1%

Color previews

#a04df2 text on a black background

contrast 4.84:1

Card sample

#a04df2 text on a white background

contrast 4.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a04df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a04df2 in the Color Lab