Skip to content
Vectorlight.net

#ab2ecb

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

HEX
#ab2ecb
RGB
171, 46, 203
HSL
287.77°, 63.05%, 48.82%
OKLCH
0.56 0.24 318.27
Names
—
Lists

Codes

FormatValue
HEX#ab2ecb
RGBrgb(171 46 203)
HSLhsl(287.77 63.05% 48.82%)
OKLCHoklch(0.56 0.24 318.27)
CMYKcmyk(15.76% 77.34% 0% 20.39%)
Android#ffab2ecb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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