Skip to content
Vectorlight.net

#a871ef

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

HEX
#a871ef
RGB
168, 113, 239
HSL
266.19°, 79.75%, 69.02%
OKLCH
0.66 0.18 301.71
Names
—
Lists

Codes

FormatValue
HEX#a871ef
RGBrgb(168 113 239)
HSLhsl(266.19 79.75% 69.02%)
OKLCHoklch(0.66 0.18 301.71)
CMYKcmyk(29.71% 52.72% 0% 6.27%)
Android#ffa871ef

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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