Skip to content
Vectorlight.net

#b158eb

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

HEX
#b158eb
RGB
177, 88, 235
HSL
276.33°, 78.61%, 63.33%
OKLCH
0.63 0.22 309.39
Names
—
Lists

Codes

FormatValue
HEX#b158eb
RGBrgb(177 88 235)
HSLhsl(276.33 78.61% 63.33%)
OKLCHoklch(0.63 0.22 309.39)
CMYKcmyk(24.68% 62.55% 0% 7.84%)
Android#ffb158eb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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