Skip to content
Vectorlight.net

#a642cc

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

HEX
#a642cc
RGB
166, 66, 204
HSL
283.48°, 57.5%, 52.94%
OKLCH
0.57 0.21 315.18
Names
—
Lists

Codes

FormatValue
HEX#a642cc
RGBrgb(166 66 204)
HSLhsl(283.48 57.5% 52.94%)
OKLCHoklch(0.57 0.21 315.18)
CMYKcmyk(18.63% 67.65% 0% 20%)
Android#ffa642cc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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