Skip to content
Vectorlight.net

#8a42ad

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

HEX
#8a42ad
RGB
138, 66, 173
HSL
280.37°, 44.77%, 46.86%
OKLCH
0.52 0.17 313.01
Names
—
Lists

Codes

FormatValue
HEX#8a42ad
RGBrgb(138 66 173)
HSLhsl(280.37 44.77% 46.86%)
OKLCHoklch(0.52 0.17 313.01)
CMYKcmyk(20.23% 61.85% 0% 32.16%)
Android#ff8a42ad

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #8a42ad;
background-color: #8a42ad;
bg-[#8a42ad]