Skip to content
Vectorlight.net

#ba3aaa

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

HEX
#ba3aaa
RGB
186, 58, 170
HSL
307.5°, 52.46%, 47.84%
OKLCH
0.57 0.2 333.36
Names
—
Lists

Codes

FormatValue
HEX#ba3aaa
RGBrgb(186 58 170)
HSLhsl(307.5 52.46% 47.84%)
OKLCHoklch(0.57 0.2 333.36)
CMYKcmyk(0% 68.82% 8.6% 27.06%)
Android#ffba3aaa

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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