Skip to content
Vectorlight.net

#ba57ca

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

HEX
#ba57ca
RGB
186, 87, 202
HSL
291.65°, 52.04%, 56.67%
OKLCH
0.62 0.19 321.89
Names
—
Lists

Codes

FormatValue
HEX#ba57ca
RGBrgb(186 87 202)
HSLhsl(291.65 52.04% 56.67%)
OKLCHoklch(0.62 0.19 321.89)
CMYKcmyk(7.92% 56.93% 0% 20.78%)
Android#ffba57ca

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="#ba57ca"
Gradient stop
<stop stop-color="#ba57ca"/>
CSS variable + fill
:root { --c: #ba57ca; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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