Skip to content
Vectorlight.net

#bb31d8

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

HEX
#bb31d8
RGB
187, 49, 216
HSL
289.58°, 68.16%, 51.96%
OKLCH
0.59 0.25 319.82
Names
—
Lists

Codes

FormatValue
HEX#bb31d8
RGBrgb(187 49 216)
HSLhsl(289.58 68.16% 51.96%)
OKLCHoklch(0.59 0.25 319.82)
CMYKcmyk(13.43% 77.31% 0% 15.29%)
Android#ffbb31d8

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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