Skip to content
Vectorlight.net

#ab238b

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

HEX
#ab238b
RGB
171, 35, 139
HSL
314.12°, 66.02%, 40.39%
OKLCH
0.52 0.2 339.77
Names
—
Lists

Codes

FormatValue
HEX#ab238b
RGBrgb(171 35 139)
HSLhsl(314.12 66.02% 40.39%)
OKLCHoklch(0.52 0.2 339.77)
CMYKcmyk(0% 79.53% 18.71% 32.94%)
Android#ffab238b

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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