Skip to content
Vectorlight.net

#942eab

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

HEX
#942eab
RGB
148, 46, 171
HSL
288.96°, 57.6%, 42.55%
OKLCH
0.51 0.2 319.53
Names
—
Lists

Codes

FormatValue
HEX#942eab
RGBrgb(148 46 171)
HSLhsl(288.96 57.6% 42.55%)
OKLCHoklch(0.51 0.2 319.53)
CMYKcmyk(13.45% 73.1% 0% 32.94%)
Android#ff942eab

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #942eab;
background-color: #942eab;
bg-[#942eab]