Skip to content
Vectorlight.net

#a640df

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

HEX
#a640df
RGB
166, 64, 223
HSL
278.49°, 71.3%, 56.27%
OKLCH
0.58 0.23 310.41
Names
—
Lists

Codes

FormatValue
HEX#a640df
RGBrgb(166 64 223)
HSLhsl(278.49 71.3% 56.27%)
OKLCHoklch(0.58 0.23 310.41)
CMYKcmyk(25.56% 71.3% 0% 12.55%)
Android#ffa640df

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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