Skip to content
Vectorlight.net

#a840df

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

HEX
#a840df
RGB
168, 64, 223
HSL
279.25°, 71.3%, 56.27%
OKLCH
0.59 0.23 311.11
Names
—
Lists

Codes

FormatValue
HEX#a840df
RGBrgb(168 64 223)
HSLhsl(279.25 71.3% 56.27%)
OKLCHoklch(0.59 0.23 311.11)
CMYKcmyk(24.66% 71.3% 0% 12.55%)
Android#ffa840df

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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