Skip to content
Vectorlight.net

#ba42be

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

HEX
#ba42be
RGB
186, 66, 190
HSL
298.06°, 48.82%, 50.2%
OKLCH
0.59 0.21 326.49
Names
—
Lists

Codes

FormatValue
HEX#ba42be
RGBrgb(186 66 190)
HSLhsl(298.06 48.82% 50.2%)
OKLCHoklch(0.59 0.21 326.49)
CMYKcmyk(2.11% 65.26% 0% 25.49%)
Android#ffba42be

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
4.55:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.61:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000

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

Recolor an SVG with this color

CSS

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