Skip to content
Vectorlight.net

#ba5eaf

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

HEX
#ba5eaf
RGB
186, 94, 175
HSL
307.17°, 40%, 54.9%
OKLCH
0.62 0.16 331.92
Names
—
Lists

Codes

FormatValue
HEX#ba5eaf
RGBrgb(186 94 175)
HSLhsl(307.17 40% 54.9%)
OKLCHoklch(0.62 0.16 331.92)
CMYKcmyk(0% 49.46% 5.91% 27.06%)
Android#ffba5eaf

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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