Skip to content
Vectorlight.net

#a840bc

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

HEX
#a840bc
RGB
168, 64, 188
HSL
290.32°, 49.21%, 49.41%
OKLCH
0.56 0.2 320.81
Names
—
Lists

Codes

FormatValue
HEX#a840bc
RGBrgb(168 64 188)
HSLhsl(290.32 49.21% 49.41%)
OKLCHoklch(0.56 0.2 320.81)
CMYKcmyk(10.64% 65.96% 0% 26.27%)
Android#ffa840bc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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