Skip to content
Vectorlight.net

#a831cf

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

HEX
#a831cf
RGB
168, 49, 207
HSL
285.19°, 62.2%, 50.2%
OKLCH
0.56 0.24 316.06
Names
—
Lists

Codes

FormatValue
HEX#a831cf
RGBrgb(168 49 207)
HSLhsl(285.19 62.2% 50.2%)
OKLCHoklch(0.56 0.24 316.06)
CMYKcmyk(18.84% 76.33% 0% 18.82%)
Android#ffa831cf

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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