Skip to content
Vectorlight.net

#ba52bb

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

HEX
#ba52bb
RGB
186, 82, 187
HSL
299.43°, 43.57%, 52.75%
OKLCH
0.61 0.18 327.18
Names
—
Lists

Codes

FormatValue
HEX#ba52bb
RGBrgb(186 82 187)
HSLhsl(299.43 43.57% 52.75%)
OKLCHoklch(0.61 0.18 327.18)
CMYKcmyk(0.53% 56.15% 0% 26.67%)
Android#ffba52bb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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