Skip to content
Vectorlight.net

#a271bd

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

HEX
#a271bd
RGB
162, 113, 189
HSL
278.68°, 36.54%, 59.22%
OKLCH
0.63 0.12 312.84
Names
—
Lists

Codes

FormatValue
HEX#a271bd
RGBrgb(162 113 189)
HSLhsl(278.68 36.54% 59.22%)
OKLCHoklch(0.63 0.12 312.84)
CMYKcmyk(14.29% 40.21% 0% 25.88%)
Android#ffa271bd

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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