Skip to content
Vectorlight.net

#ba148d

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

HEX
#ba148d
RGB
186, 20, 141
HSL
316.27°, 80.58%, 40.39%
OKLCH
0.53 0.22 343.16
Names
—
Lists

Codes

FormatValue
HEX#ba148d
RGBrgb(186 20 141)
HSLhsl(316.27 80.58% 40.39%)
OKLCHoklch(0.53 0.22 343.16)
CMYKcmyk(0% 89.25% 24.19% 27.06%)
Android#ffba148d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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