Skip to content
Vectorlight.net

#ba198f

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

HEX
#ba198f
RGB
186, 25, 143
HSL
316.02°, 76.3%, 41.37%
OKLCH
0.54 0.22 342.53
Names
—
Lists

Codes

FormatValue
HEX#ba198f
RGBrgb(186 25 143)
HSLhsl(316.02 76.3% 41.37%)
OKLCHoklch(0.54 0.22 342.53)
CMYKcmyk(0% 86.56% 23.12% 27.06%)
Android#ffba198f

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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