Skip to content
Vectorlight.net

#a40bab

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

HEX
#a40bab
RGB
164, 11, 171
HSL
297.38°, 87.91%, 35.69%
OKLCH
0.51 0.23 326.08
Names
—
Lists

Codes

FormatValue
HEX#a40bab
RGBrgb(164 11 171)
HSLhsl(297.38 87.91% 35.69%)
OKLCHoklch(0.51 0.23 326.08)
CMYKcmyk(4.09% 93.57% 0% 32.94%)
Android#ffa40bab

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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