Skip to content
Vectorlight.net

#ba46aa

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

HEX
#ba46aa
RGB
186, 70, 170
HSL
308.28°, 45.67%, 50.2%
OKLCH
0.59 0.19 333.52
Names
—
Lists

Codes

FormatValue
HEX#ba46aa
RGBrgb(186 70 170)
HSLhsl(308.28 45.67% 50.2%)
OKLCHoklch(0.59 0.19 333.52)
CMYKcmyk(0% 62.37% 8.6% 27.06%)
Android#ffba46aa

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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