Skip to content
Vectorlight.net

#ba45aa

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

HEX
#ba45aa
RGB
186, 69, 170
HSL
308.21°, 45.88%, 50%
OKLCH
0.59 0.19 333.5
Names
—
Lists

Codes

FormatValue
HEX#ba45aa
RGBrgb(186 69 170)
HSLhsl(308.21 45.88% 50%)
OKLCHoklch(0.59 0.19 333.5)
CMYKcmyk(0% 62.9% 8.6% 27.06%)
Android#ffba45aa

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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