Skip to content
Vectorlight.net

#8a1aaa

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

HEX
#8a1aaa
RGB
138, 26, 170
HSL
286.67°, 73.47%, 38.43%
OKLCH
0.48 0.21 316.83
Names
—
Lists

Codes

FormatValue
HEX#8a1aaa
RGBrgb(138 26 170)
HSLhsl(286.67 73.47% 38.43%)
OKLCHoklch(0.48 0.21 316.83)
CMYKcmyk(18.82% 84.71% 0% 33.33%)
Android#ff8a1aaa

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #8a1aaa;
background-color: #8a1aaa;
bg-[#8a1aaa]