Skip to content
Vectorlight.net

#ba52af

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

HEX
#ba52af
RGB
186, 82, 175
HSL
306.35°, 42.98%, 52.55%
OKLCH
0.6 0.17 331.73
Names
—
Lists

Codes

FormatValue
HEX#ba52af
RGBrgb(186 82 175)
HSLhsl(306.35 42.98% 52.55%)
OKLCHoklch(0.6 0.17 331.73)
CMYKcmyk(0% 55.91% 5.91% 27.06%)
Android#ffba52af

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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