Skip to content
Vectorlight.net

#b51497

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

HEX
#b51497
RGB
181, 20, 151
HSL
311.18°, 80.1%, 39.41%
OKLCH
0.53 0.22 338.08
Names
—
Lists

Codes

FormatValue
HEX#b51497
RGBrgb(181 20 151)
HSLhsl(311.18 80.1% 39.41%)
OKLCHoklch(0.53 0.22 338.08)
CMYKcmyk(0% 88.95% 16.57% 29.02%)
Android#ffb51497

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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