Skip to content
Vectorlight.net

#ba20cd

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

HEX
#ba20cd
RGB
186, 32, 205
HSL
293.41°, 73%, 46.47%
OKLCH
0.58 0.25 322.83
Names
—
Lists

Codes

FormatValue
HEX#ba20cd
RGBrgb(186 32 205)
HSLhsl(293.41 73% 46.47%)
OKLCHoklch(0.58 0.25 322.83)
CMYKcmyk(9.27% 84.39% 0% 19.61%)
Android#ffba20cd

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
5.02:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.17:1
Fail AA normal text
Pass AA large text
On black #000000 · Best text #ffffff

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

Recolor an SVG with this color

CSS

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