Skip to content
Vectorlight.net

#ba22ce

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

HEX
#ba22ce
RGB
186, 34, 206
HSL
293.02°, 71.67%, 47.06%
OKLCH
0.58 0.25 322.53
Names
—
Lists

Codes

FormatValue
HEX#ba22ce
RGBrgb(186 34 206)
HSLhsl(293.02 71.67% 47.06%)
OKLCHoklch(0.58 0.25 322.53)
CMYKcmyk(9.71% 83.5% 0% 19.22%)
Android#ffba22ce

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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