Skip to content
Vectorlight.net

#a212ad

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

HEX
#a212ad
RGB
162, 18, 173
HSL
295.74°, 81.15%, 37.45%
OKLCH
0.51 0.23 324.73
Names
—
Lists

Codes

FormatValue
HEX#a212ad
RGBrgb(162 18 173)
HSLhsl(295.74 81.15% 37.45%)
OKLCHoklch(0.51 0.23 324.73)
CMYKcmyk(6.36% 89.6% 0% 32.16%)
Android#ffa212ad

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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