Skip to content

#a02dfd

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

RGB
160, 45, 253
HSL
273°, 98%, 58%
CMYK
37, 82, 0, 1
Luminance
0.1644

Every format

HEX#a02dfd
RGBrgb(160, 45, 253)
HSLhsl(273, 98%, 58%)
CMYKcmyk(37%, 82%, 0%, 1%)
LABlab(47.5 78.1 -81.1)
LCHlch(47.5 112.6 313.9)
OKLCHoklch(0.584 0.277 303.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red62.7%
Green17.6%
Blue99.2%

CMYK percentages

Cyan36.8%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#a02dfd text on a black background

contrast 4.29:1

Card sample

#a02dfd text on a white background

contrast 4.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a02dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a02dfd in the Color Lab