Skip to content
Vectorlight.net

#7871bf

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

HEX
#7871bf
RGB
120, 113, 191
HSL
245.38°, 37.86%, 59.61%
OKLCH
0.59 0.12 286.31
Names
—
Lists

Codes

FormatValue
HEX#7871bf
RGBrgb(120 113 191)
HSLhsl(245.38 37.86% 59.61%)
OKLCHoklch(0.59 0.12 286.31)
CMYKcmyk(37.17% 40.84% 0% 25.1%)
Android#ff7871bf

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
4.27:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
4.91:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000

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="#7871bf"
Gradient stop
<stop stop-color="#7871bf"/>
CSS variable + fill
:root { --c: #7871bf; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #7871bf;
background-color: #7871bf;
bg-[#7871bf]