Skip to content
Vectorlight.net

#ba52ce

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

HEX
#ba52ce
RGB
186, 82, 206
HSL
290.32°, 55.86%, 56.47%
OKLCH
0.62 0.2 320.9
Names
—
Lists

Codes

FormatValue
HEX#ba52ce
RGBrgb(186 82 206)
HSLhsl(290.32 55.86% 56.47%)
OKLCHoklch(0.62 0.2 320.9)
CMYKcmyk(9.71% 60.19% 0% 19.22%)
Android#ffba52ce

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
4.04:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.18:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000

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="#ba52ce"
Gradient stop
<stop stop-color="#ba52ce"/>
CSS variable + fill
:root { --c: #ba52ce; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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