Skip to content
Vectorlight.net

#a40ba7

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

HEX
#a40ba7
RGB
164, 11, 167
HSL
298.85°, 87.64%, 34.9%
OKLCH
0.51 0.23 327.34
Names
—
Lists

Codes

FormatValue
HEX#a40ba7
RGBrgb(164 11 167)
HSLhsl(298.85 87.64% 34.9%)
OKLCHoklch(0.51 0.23 327.34)
CMYKcmyk(1.8% 93.41% 0% 34.51%)
Android#ffa40ba7

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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