Skip to content
Vectorlight.net

#9877fe

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

HEX
#9877fe
RGB
152, 119, 254
HSL
254.67°, 98.54%, 73.14%
OKLCH
0.66 0.19 291.53
Names
—
Lists

Codes

FormatValue
HEX#9877fe
RGBrgb(152 119 254)
HSLhsl(254.67 98.54% 73.14%)
OKLCHoklch(0.66 0.19 291.53)
CMYKcmyk(40.16% 53.15% 0% 0.39%)
Android#ff9877fe

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #9877fe;
background-color: #9877fe;
bg-[#9877fe]