Skip to content
Vectorlight.net

#52126e

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

HEX
#52126e
RGB
82, 18, 110
HSL
281.74°, 71.88%, 25.1%
OKLCH
0.34 0.15 312.6
Names
—
Lists

Codes

FormatValue
HEX#52126e
RGBrgb(82 18 110)
HSLhsl(281.74 71.88% 25.1%)
OKLCHoklch(0.34 0.15 312.6)
CMYKcmyk(25.45% 83.64% 0% 56.86%)
Android#ff52126e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #52126e;
background-color: #52126e;
bg-[#52126e]