Skip to content
Vectorlight.net

#a40f7d

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

HEX
#a40f7d
RGB
164, 15, 125
HSL
315.7°, 83.24%, 35.1%
OKLCH
0.49 0.2 342.7
Names
—
Lists

Codes

FormatValue
HEX#a40f7d
RGBrgb(164 15 125)
HSLhsl(315.7 83.24% 35.1%)
OKLCHoklch(0.49 0.2 342.7)
CMYKcmyk(0% 90.85% 23.78% 35.69%)
Android#ffa40f7d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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