Skip to content
Vectorlight.net

#8a21dd

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

HEX
#8a21dd
RGB
138, 33, 221
HSL
273.51°, 74.02%, 49.8%
OKLCH
0.52 0.25 303.04
Names
—
Lists

Codes

FormatValue
HEX#8a21dd
RGBrgb(138 33 221)
HSLhsl(273.51 74.02% 49.8%)
OKLCHoklch(0.52 0.25 303.04)
CMYKcmyk(37.56% 85.07% 0% 13.33%)
Android#ff8a21dd

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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