Skip to content
Vectorlight.net

#7841cf

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

HEX
#7841cf
RGB
120, 65, 207
HSL
263.24°, 59.66%, 53.33%
OKLCH
0.52 0.21 296.19
Names
—
Lists

Codes

FormatValue
HEX#7841cf
RGBrgb(120 65 207)
HSLhsl(263.24 59.66% 53.33%)
OKLCHoklch(0.52 0.21 296.19)
CMYKcmyk(42.03% 68.6% 0% 18.82%)
Android#ff7841cf

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #7841cf;
background-color: #7841cf;
bg-[#7841cf]