Skip to content
Vectorlight.net

#940fce

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

HEX
#940fce
RGB
148, 15, 206
HSL
281.78°, 86.43%, 43.33%
OKLCH
0.51 0.25 310.76
Names
—
Lists

Codes

FormatValue
HEX#940fce
RGBrgb(148 15 206)
HSLhsl(281.78 86.43% 43.33%)
OKLCHoklch(0.51 0.25 310.76)
CMYKcmyk(28.16% 92.72% 0% 19.22%)
Android#ff940fce

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #940fce;
background-color: #940fce;
bg-[#940fce]