Skip to content
Vectorlight.net

#ba1bca

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

HEX
#ba1bca
RGB
186, 27, 202
HSL
294.51°, 76.42%, 44.9%
OKLCH
0.57 0.26 323.72
Names
—
Lists

Codes

FormatValue
HEX#ba1bca
RGBrgb(186 27 202)
HSLhsl(294.51 76.42% 44.9%)
OKLCHoklch(0.57 0.26 323.72)
CMYKcmyk(7.92% 86.63% 0% 20.78%)
Android#ffba1bca

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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