Skip to content
Vectorlight.net

#9d42fe

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

HEX
#9d42fe
RGB
157, 66, 254
HSL
269.04°, 98.95%, 62.75%
OKLCH
0.6 0.26 300.63
Names
—
Lists

Codes

FormatValue
HEX#9d42fe
RGBrgb(157 66 254)
HSLhsl(269.04 98.95% 62.75%)
OKLCHoklch(0.6 0.26 300.63)
CMYKcmyk(38.19% 74.02% 0% 0.39%)
Android#ff9d42fe

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #9d42fe;
background-color: #9d42fe;
bg-[#9d42fe]