Skip to content
Vectorlight.net

#ba54dc

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

HEX
#ba54dc
RGB
186, 84, 220
HSL
285°, 66.02%, 59.61%
OKLCH
0.63 0.21 316.73
Names
—
Lists

Codes

FormatValue
HEX#ba54dc
RGBrgb(186 84 220)
HSLhsl(285 66.02% 59.61%)
OKLCHoklch(0.63 0.21 316.73)
CMYKcmyk(15.45% 61.82% 0% 13.73%)
Android#ffba54dc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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