Skip to content
Vectorlight.net

#981c8f

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

HEX
#981c8f
RGB
152, 28, 143
HSL
304.35°, 68.89%, 35.29%
OKLCH
0.48 0.2 331.53
Names
—
Lists

Codes

FormatValue
HEX#981c8f
RGBrgb(152 28 143)
HSLhsl(304.35 68.89% 35.29%)
OKLCHoklch(0.48 0.2 331.53)
CMYKcmyk(0% 81.58% 5.92% 40.39%)
Android#ff981c8f

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #981c8f;
background-color: #981c8f;
bg-[#981c8f]