Skip to content
Vectorlight.net

#a51d8a

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

HEX
#a51d8a
RGB
165, 29, 138
HSL
311.91°, 70.1%, 38.04%
OKLCH
0.5 0.2 338.05
Names
—
Lists

Codes

FormatValue
HEX#a51d8a
RGBrgb(165 29 138)
HSLhsl(311.91 70.1% 38.04%)
OKLCHoklch(0.5 0.2 338.05)
CMYKcmyk(0% 82.42% 16.36% 35.29%)
Android#ffa51d8a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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