Skip to content
Vectorlight.net

#ba1b4e

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

HEX
#ba1b4e
RGB
186, 27, 78
HSL
340.75°, 74.65%, 41.76%
OKLCH
0.51 0.19 9.93
Names
—
Lists

Codes

FormatValue
HEX#ba1b4e
RGBrgb(186 27 78)
HSLhsl(340.75 74.65% 41.76%)
OKLCHoklch(0.51 0.19 9.93)
CMYKcmyk(0% 85.48% 58.06% 27.06%)
Android#ffba1b4e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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