Skip to content
Vectorlight.net

#ab46eb

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

HEX
#ab46eb
RGB
171, 70, 235
HSL
276.73°, 80.49%, 59.8%
OKLCH
0.61 0.24 308.88
Names
—
Lists

Codes

FormatValue
HEX#ab46eb
RGBrgb(171 70 235)
HSLhsl(276.73 80.49% 59.8%)
OKLCHoklch(0.61 0.24 308.88)
CMYKcmyk(27.23% 70.21% 0% 7.84%)
Android#ffab46eb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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