Skip to content
Vectorlight.net

#b940bf

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

HEX
#b940bf
RGB
185, 64, 191
HSL
297.17°, 49.8%, 50%
OKLCH
0.59 0.21 325.88
Names
—
Lists

Codes

FormatValue
HEX#b940bf
RGBrgb(185 64 191)
HSLhsl(297.17 49.8% 50%)
OKLCHoklch(0.59 0.21 325.88)
CMYKcmyk(3.14% 66.49% 0% 25.1%)
Android#ffb940bf

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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