Skip to content
Vectorlight.net

#a271dd

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

HEX
#a271dd
RGB
162, 113, 221
HSL
267.22°, 61.36%, 65.49%
OKLCH
0.64 0.16 303.1
Names
—
Lists

Codes

FormatValue
HEX#a271dd
RGBrgb(162 113 221)
HSLhsl(267.22 61.36% 65.49%)
OKLCHoklch(0.64 0.16 303.1)
CMYKcmyk(26.7% 48.87% 0% 13.33%)
Android#ffa271dd

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
3.53:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.94:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000

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="#a271dd"
Gradient stop
<stop stop-color="#a271dd"/>
CSS variable + fill
:root { --c: #a271dd; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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