Skip to content
Vectorlight.net

#b31f8a

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

HEX
#b31f8a
RGB
179, 31, 138
HSL
316.62°, 70.48%, 41.18%
OKLCH
0.53 0.21 342.55
Names
—
Lists

Codes

FormatValue
HEX#b31f8a
RGBrgb(179 31 138)
HSLhsl(316.62 70.48% 41.18%)
OKLCHoklch(0.53 0.21 342.55)
CMYKcmyk(0% 82.68% 22.91% 29.8%)
Android#ffb31f8a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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