Skip to content

#a02dfb

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

RGB
160, 45, 251
HSL
274°, 96%, 58%
CMYK
36, 82, 0, 2
Luminance
0.1632

Every format

HEX#a02dfb
RGBrgb(160, 45, 251)
HSLhsl(274, 96%, 58%)
CMYKcmyk(36%, 82%, 0%, 2%)
LABlab(47.4 77.7 -80.3)
LCHlch(47.4 111.7 314.1)
OKLCHoklch(0.582 0.275 303.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a02dfb on white: 4.93:1
AA ✓ pass · AA-large · AAA
Aa
#a02dfb on black: 4.26:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.7%
Green17.6%
Blue98.4%

CMYK percentages

Cyan36.3%
Magenta82.1%
Yellow0.0%
Key (black)1.6%

Color previews

#a02dfb text on a black background

contrast 4.26:1

Card sample

#a02dfb text on a white background

contrast 4.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a02dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a02dfb in the Color Lab