Skip to content
Vectorlight.net

#ba1387

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

HEX
#ba1387
RGB
186, 19, 135
HSL
318.32°, 81.46%, 40.2%
OKLCH
0.53 0.22 345.4
Names
—
Lists

Codes

FormatValue
HEX#ba1387
RGBrgb(186 19 135)
HSLhsl(318.32 81.46% 40.2%)
OKLCHoklch(0.53 0.22 345.4)
CMYKcmyk(0% 89.78% 27.42% 27.06%)
Android#ffba1387

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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