Skip to content
Vectorlight.net

#52228e

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

HEX
#52228e
RGB
82, 34, 142
HSL
266.67°, 61.36%, 34.51%
OKLCH
0.39 0.17 298.4
Names
—
Lists

Codes

FormatValue
HEX#52228e
RGBrgb(82 34 142)
HSLhsl(266.67 61.36% 34.51%)
OKLCHoklch(0.39 0.17 298.4)
CMYKcmyk(42.25% 76.06% 0% 44.31%)
Android#ff52228e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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