Skip to content
Vectorlight.net

#a12aaa

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

HEX
#a12aaa
RGB
161, 42, 170
HSL
295.78°, 60.38%, 41.57%
OKLCH
0.52 0.21 324.91
Names
—
Lists

Codes

FormatValue
HEX#a12aaa
RGBrgb(161 42 170)
HSLhsl(295.78 60.38% 41.57%)
OKLCHoklch(0.52 0.21 324.91)
CMYKcmyk(5.29% 75.29% 0% 33.33%)
Android#ffa12aaa

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
6.12:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
3.42: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="#a12aaa"
Gradient stop
<stop stop-color="#a12aaa"/>
CSS variable + fill
:root { --c: #a12aaa; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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