Skip to content
Vectorlight.net

#a51486

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

HEX
#a51486
RGB
165, 20, 134
HSL
312.83°, 78.38%, 36.27%
OKLCH
0.49 0.2 339.47
Names
—
Lists

Codes

FormatValue
HEX#a51486
RGBrgb(165 20 134)
HSLhsl(312.83 78.38% 36.27%)
OKLCHoklch(0.49 0.2 339.47)
CMYKcmyk(0% 87.88% 18.79% 35.29%)
Android#ffa51486

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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