Skip to content

#a00fdf

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

RGB
160, 15, 223
HSL
282°, 87%, 47%
CMYK
28, 93, 0, 13
Luminance
0.1314

Every format

HEX#a00fdf
RGBrgb(160, 15, 223)
HSLhsl(282, 87%, 47%)
CMYKcmyk(28%, 93%, 0%, 13%)
LABlab(43.0 78.4 -71.6)
LCHlch(43.0 106.2 317.6)
OKLCHoklch(0.545 0.268 310.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a00fdf on white: 5.79:1
AA ✓ pass · AA-large · AAA
Aa
#a00fdf on black: 3.63:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.7%
Green5.9%
Blue87.5%

CMYK percentages

Cyan28.3%
Magenta93.3%
Yellow0.0%
Key (black)12.5%

Color previews

#a00fdf text on a black background

contrast 3.63:1

Card sample

#a00fdf text on a white background

contrast 5.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a00fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a00fdf in the Color Lab