Skip to content
Vectorlight.net

#9870da

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

HEX
#9870da
RGB
152, 112, 218
HSL
262.64°, 58.89%, 64.71%
OKLCH
0.63 0.16 299.27
Names
—
Lists

Codes

FormatValue
HEX#9870da
RGBrgb(152 112 218)
HSLhsl(262.64 58.89% 64.71%)
OKLCHoklch(0.63 0.16 299.27)
CMYKcmyk(30.28% 48.62% 0% 14.51%)
Android#ff9870da

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #9870da;
background-color: #9870da;
bg-[#9870da]