Skip to content
Vectorlight.net

#ba20cf

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

HEX
#ba20cf
RGB
186, 32, 207
HSL
292.8°, 73.22%, 46.86%
OKLCH
0.58 0.26 322.3
Names
—
Lists

Codes

FormatValue
HEX#ba20cf
RGBrgb(186 32 207)
HSLhsl(292.8 73.22% 46.86%)
OKLCHoklch(0.58 0.26 322.3)
CMYKcmyk(10.14% 84.54% 0% 18.82%)
Android#ffba20cf

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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