Skip to content
Vectorlight.net

#a21cdc

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

HEX
#a21cdc
RGB
162, 28, 220
HSL
281.88°, 77.42%, 48.63%
OKLCH
0.55 0.26 311.66
Names
—
Lists

Codes

FormatValue
HEX#a21cdc
RGBrgb(162 28 220)
HSLhsl(281.88 77.42% 48.63%)
OKLCHoklch(0.55 0.26 311.66)
CMYKcmyk(26.36% 87.27% 0% 13.73%)
Android#ffa21cdc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #a21cdc;
background-color: #a21cdc;
bg-[#a21cdc]