Skip to content
Vectorlight.net

#ab56eb

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

HEX
#ab56eb
RGB
171, 86, 235
HSL
274.23°, 78.84%, 62.94%
OKLCH
0.62 0.22 307.43
Names
—
Lists

Codes

FormatValue
HEX#ab56eb
RGBrgb(171 86 235)
HSLhsl(274.23 78.84% 62.94%)
OKLCHoklch(0.62 0.22 307.43)
CMYKcmyk(27.23% 63.4% 0% 7.84%)
Android#ffab56eb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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