Skip to content
Vectorlight.net

#520a7f

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

HEX
#520a7f
RGB
82, 10, 127
HSL
276.92°, 85.4%, 26.86%
OKLCH
0.35 0.17 306.16
Names
—
Lists

Codes

FormatValue
HEX#520a7f
RGBrgb(82 10 127)
HSLhsl(276.92 85.4% 26.86%)
OKLCHoklch(0.35 0.17 306.16)
CMYKcmyk(35.43% 92.13% 0% 50.2%)
Android#ff520a7f

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #520a7f;
background-color: #520a7f;
bg-[#520a7f]