Skip to content
Vectorlight.net

#ab1797

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

HEX
#ab1797
RGB
171, 23, 151
HSL
308.11°, 76.29%, 38.04%
OKLCH
0.52 0.22 335.02
Names
—
Lists

Codes

FormatValue
HEX#ab1797
RGBrgb(171 23 151)
HSLhsl(308.11 76.29% 38.04%)
OKLCHoklch(0.52 0.22 335.02)
CMYKcmyk(0% 86.55% 11.7% 32.94%)
Android#ffab1797

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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