Skip to content
Vectorlight.net

#a31aaa

Codes, contrast, shades, harmonies and SVG snippets for this color.

HEX
#a31aaa
RGB
163, 26, 170
HSL
297.08°, 73.47%, 38.43%
OKLCH
0.52 0.22 325.91
Names
—
Lists

Codes

FormatValue
HEX#a31aaa
RGBrgb(163 26 170)
HSLhsl(297.08 73.47% 38.43%)
OKLCHoklch(0.52 0.22 325.91)
CMYKcmyk(4.12% 84.71% 0% 33.33%)
Android#ffa31aaa

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
6.39:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
3.28:1
Fail AA normal text
Pass AA large text
On black #000000 · Best text #ffffff

Open in contrast checker

Shades & tints

OKLCH lightness, mixed toward white then black.

Open in shades & tints

Harmonies

Complementary

Analogous

Triadic

Open in palette generator

Color-blindness

Normal
Protanopia
Deuteranopia
Tritanopia

Open simulator

SVG snippets

fill
fill="#a31aaa"
Gradient stop
<stop stop-color="#a31aaa"/>
CSS variable + fill
:root { --c: #a31aaa; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #a31aaa;
background-color: #a31aaa;
bg-[#a31aaa]