Skip to content
Vectorlight.net

#b40c8e

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

HEX
#b40c8e
RGB
180, 12, 142
HSL
313.57°, 87.5%, 37.65%
OKLCH
0.52 0.22 340.93
Names
—
Lists

Codes

FormatValue
HEX#b40c8e
RGBrgb(180 12 142)
HSLhsl(313.57 87.5% 37.65%)
OKLCHoklch(0.52 0.22 340.93)
CMYKcmyk(0% 93.33% 21.11% 29.41%)
Android#ffb40c8e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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