Skip to content
Vectorlight.net

#9742fe

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

HEX
#9742fe
RGB
151, 66, 254
HSL
267.13°, 98.95%, 62.75%
OKLCH
0.59 0.26 298.64
Names
—
Lists

Codes

FormatValue
HEX#9742fe
RGBrgb(151 66 254)
HSLhsl(267.13 98.95% 62.75%)
OKLCHoklch(0.59 0.26 298.64)
CMYKcmyk(40.55% 74.02% 0% 0.39%)
Android#ff9742fe

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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