Skip to content
Vectorlight.net

#ad40cc

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

HEX
#ad40cc
RGB
173, 64, 204
HSL
286.71°, 57.85%, 52.55%
OKLCH
0.58 0.22 317.83
Names
—
Lists

Codes

FormatValue
HEX#ad40cc
RGBrgb(173 64 204)
HSLhsl(286.71 57.85% 52.55%)
OKLCHoklch(0.58 0.22 317.83)
CMYKcmyk(15.2% 68.63% 0% 20%)
Android#ffad40cc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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