Skip to content
Vectorlight.net

#aa42eb

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

HEX
#aa42eb
RGB
170, 66, 235
HSL
276.92°, 80.86%, 59.02%
OKLCH
0.6 0.24 308.85
Names
—
Lists

Codes

FormatValue
HEX#aa42eb
RGBrgb(170 66 235)
HSLhsl(276.92 80.86% 59.02%)
OKLCHoklch(0.6 0.24 308.85)
CMYKcmyk(27.66% 71.91% 0% 7.84%)
Android#ffaa42eb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

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="#aa42eb"
Gradient stop
<stop stop-color="#aa42eb"/>
CSS variable + fill
:root { --c: #aa42eb; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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