Skip to content
Vectorlight.net

#a227af

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

HEX
#a227af
RGB
162, 39, 175
HSL
294.26°, 63.55%, 41.96%
OKLCH
0.53 0.22 323.7
Names
—
Lists

Codes

FormatValue
HEX#a227af
RGBrgb(162 39 175)
HSLhsl(294.26 63.55% 41.96%)
OKLCHoklch(0.53 0.22 323.7)
CMYKcmyk(7.43% 77.71% 0% 31.37%)
Android#ffa227af

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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