Skip to content
Vectorlight.net

#ba5aaa

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

HEX
#ba5aaa
RGB
186, 90, 170
HSL
310°, 41.03%, 54.12%
OKLCH
0.61 0.16 334.03
Names
—
Lists

Codes

FormatValue
HEX#ba5aaa
RGBrgb(186 90 170)
HSLhsl(310 41.03% 54.12%)
OKLCHoklch(0.61 0.16 334.03)
CMYKcmyk(0% 51.61% 8.6% 27.06%)
Android#ffba5aaa

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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