Skip to content
Vectorlight.net

#ba40aa

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

HEX
#ba40aa
RGB
186, 64, 170
HSL
307.87°, 48.8%, 49.02%
OKLCH
0.58 0.2 333.43
Names
—
Lists

Codes

FormatValue
HEX#ba40aa
RGBrgb(186 64 170)
HSLhsl(307.87 48.8% 49.02%)
OKLCHoklch(0.58 0.2 333.43)
CMYKcmyk(0% 65.59% 8.6% 27.06%)
Android#ffba40aa

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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