Skip to content
Vectorlight.net

#ba2dcc

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

HEX
#ba2dcc
RGB
186, 45, 204
HSL
293.21°, 63.86%, 48.82%
OKLCH
0.58 0.24 322.83
Names
—
Lists

Codes

FormatValue
HEX#ba2dcc
RGBrgb(186 45 204)
HSLhsl(293.21 63.86% 48.82%)
OKLCHoklch(0.58 0.24 322.83)
CMYKcmyk(8.82% 77.94% 0% 20%)
Android#ffba2dcc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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