Skip to content
Vectorlight.net

#781eec

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

HEX
#781eec
RGB
120, 30, 236
HSL
266.21°, 84.43%, 52.16%
OKLCH
0.51 0.27 293.76
Names
—
Lists

Codes

FormatValue
HEX#781eec
RGBrgb(120 30 236)
HSLhsl(266.21 84.43% 52.16%)
OKLCHoklch(0.51 0.27 293.76)
CMYKcmyk(49.15% 87.29% 0% 7.45%)
Android#ff781eec

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #781eec;
background-color: #781eec;
bg-[#781eec]