Skip to content

#a02fdf

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

RGB
160, 47, 223
HSL
279°, 73%, 53%
CMYK
28, 79, 0, 13
Luminance
0.1483

Every format

HEX#a02fdf
RGBrgb(160, 47, 223)
HSLhsl(279, 73%, 53%)
CMYKcmyk(28%, 79%, 0%, 13%)
LABlab(45.4 71.3 -67.7)
LCHlch(45.4 98.3 316.5)
OKLCHoklch(0.562 0.249 309.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a02fdf on white: 5.29:1
AA ✓ pass · AA-large · AAA
Aa
#a02fdf on black: 3.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.7%
Green18.4%
Blue87.5%

CMYK percentages

Cyan28.3%
Magenta78.9%
Yellow0.0%
Key (black)12.5%

Color previews

#a02fdf text on a black background

contrast 3.97:1

Card sample

#a02fdf text on a white background

contrast 5.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a02fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a02fdf in the Color Lab