Skip to content
Vectorlight.net

#b157fb

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

HEX
#b157fb
RGB
177, 87, 251
HSL
272.93°, 95.35%, 66.27%
OKLCH
0.64 0.24 305.97
Names
—
Lists

Codes

FormatValue
HEX#b157fb
RGBrgb(177 87 251)
HSLhsl(272.93 95.35% 66.27%)
OKLCHoklch(0.64 0.24 305.97)
CMYKcmyk(29.48% 65.34% 0% 1.57%)
Android#ffb157fb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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