Skip to content
Vectorlight.net

#a540cd

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

HEX
#a540cd
RGB
165, 64, 205
HSL
282.98°, 58.51%, 52.75%
OKLCH
0.57 0.22 314.68
Names
—
Lists

Codes

FormatValue
HEX#a540cd
RGBrgb(165 64 205)
HSLhsl(282.98 58.51% 52.75%)
OKLCHoklch(0.57 0.22 314.68)
CMYKcmyk(19.51% 68.78% 0% 19.61%)
Android#ffa540cd

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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