Skip to content
Vectorlight.net

#781fae

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

HEX
#781fae
RGB
120, 31, 174
HSL
277.34°, 69.76%, 40.2%
OKLCH
0.46 0.21 307.98
Names
—
Lists

Codes

FormatValue
HEX#781fae
RGBrgb(120 31 174)
HSLhsl(277.34 69.76% 40.2%)
OKLCHoklch(0.46 0.21 307.98)
CMYKcmyk(31.03% 82.18% 0% 31.76%)
Android#ff781fae

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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