Skip to content
Vectorlight.net

#ba40af

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

HEX
#ba40af
RGB
186, 64, 175
HSL
305.41°, 48.8%, 49.02%
OKLCH
0.58 0.2 331.61
Names
—
Lists

Codes

FormatValue
HEX#ba40af
RGBrgb(186 64 175)
HSLhsl(305.41 48.8% 49.02%)
OKLCHoklch(0.58 0.2 331.61)
CMYKcmyk(0% 65.59% 5.91% 27.06%)
Android#ffba40af

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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