Skip to content
Vectorlight.net

#8a22ce

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

HEX
#8a22ce
RGB
138, 34, 206
HSL
276.28°, 71.67%, 47.06%
OKLCH
0.51 0.24 306.47
Names
—
Lists

Codes

FormatValue
HEX#8a22ce
RGBrgb(138 34 206)
HSLhsl(276.28 71.67% 47.06%)
OKLCHoklch(0.51 0.24 306.47)
CMYKcmyk(33.01% 83.5% 0% 19.22%)
Android#ff8a22ce

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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