Skip to content
Vectorlight.net

#ba52ca

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

HEX
#ba52ca
RGB
186, 82, 202
HSL
292°, 53.1%, 55.69%
OKLCH
0.62 0.2 322.13
Names
—
Lists

Codes

FormatValue
HEX#ba52ca
RGBrgb(186 82 202)
HSLhsl(292 53.1% 55.69%)
OKLCHoklch(0.62 0.2 322.13)
CMYKcmyk(7.92% 59.41% 0% 20.78%)
Android#ffba52ca

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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