Skip to content

#a042df

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

RGB
160, 66, 223
HSL
276°, 71%, 57%
CMYK
28, 70, 0, 13
Luminance
0.1670

Every format

HEX#a042df
RGBrgb(160, 66, 223)
HSLhsl(276, 71%, 57%)
CMYKcmyk(28%, 70%, 0%, 13%)
LABlab(47.9 64.2 -63.7)
LCHlch(47.9 90.4 315.2)
OKLCHoklch(0.579 0.230 308.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red62.7%
Green25.9%
Blue87.5%

CMYK percentages

Cyan28.3%
Magenta70.4%
Yellow0.0%
Key (black)12.5%

Color previews

#a042df text on a black background

contrast 4.34:1

Card sample

#a042df text on a white background

contrast 4.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a042df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a042df in the Color Lab