Skip to content
Vectorlight.net

#ba5bdc

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

HEX
#ba5bdc
RGB
186, 91, 220
HSL
284.19°, 64.82%, 60.98%
OKLCH
0.64 0.2 316.23
Names
—
Lists

Codes

FormatValue
HEX#ba5bdc
RGBrgb(186 91 220)
HSLhsl(284.19 64.82% 60.98%)
OKLCHoklch(0.64 0.2 316.23)
CMYKcmyk(15.45% 58.64% 0% 13.73%)
Android#ffba5bdc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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