Skip to content
Vectorlight.net

#ba45ec

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

HEX
#ba45ec
RGB
186, 69, 236
HSL
282.04°, 81.46%, 59.8%
OKLCH
0.62 0.25 313.65
Names
—
Lists

Codes

FormatValue
HEX#ba45ec
RGBrgb(186 69 236)
HSLhsl(282.04 81.46% 59.8%)
OKLCHoklch(0.62 0.25 313.65)
CMYKcmyk(21.19% 70.76% 0% 7.45%)
Android#ffba45ec

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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