Skip to content
Vectorlight.net

#a40f8d

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

HEX
#a40f8d
RGB
164, 15, 141
HSL
309.26°, 83.24%, 35.1%
OKLCH
0.49 0.21 336.38
Names
—
Lists

Codes

FormatValue
HEX#a40f8d
RGBrgb(164 15 141)
HSLhsl(309.26 83.24% 35.1%)
OKLCHoklch(0.49 0.21 336.38)
CMYKcmyk(0% 90.85% 14.02% 35.69%)
Android#ffa40f8d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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