Skip to content
Vectorlight.net

#ab152a

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

HEX
#ab152a
RGB
171, 21, 42
HSL
351.6°, 78.13%, 37.65%
OKLCH
0.48 0.18 21.84
Names
—
Lists

Codes

FormatValue
HEX#ab152a
RGBrgb(171 21 42)
HSLhsl(351.6 78.13% 37.65%)
OKLCHoklch(0.48 0.18 21.84)
CMYKcmyk(0% 87.72% 75.44% 32.94%)
Android#ffab152a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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