Skip to content
Vectorlight.net

#b951dc

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

HEX
#b951dc
RGB
185, 81, 220
HSL
284.89°, 66.51%, 59.02%
OKLCH
0.62 0.22 316.59
Names
—
Lists

Codes

FormatValue
HEX#b951dc
RGBrgb(185 81 220)
HSLhsl(284.89 66.51% 59.02%)
OKLCHoklch(0.62 0.22 316.59)
CMYKcmyk(15.91% 63.18% 0% 13.73%)
Android#ffb951dc

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
3.98:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.27:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000

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="#b951dc"
Gradient stop
<stop stop-color="#b951dc"/>
CSS variable + fill
:root { --c: #b951dc; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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