Skip to content
Vectorlight.net

#a42897

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

HEX
#a42897
RGB
164, 40, 151
HSL
306.29°, 60.78%, 40%
OKLCH
0.51 0.2 332.79
Names
—
Lists

Codes

FormatValue
HEX#a42897
RGBrgb(164 40 151)
HSLhsl(306.29 60.78% 40%)
OKLCHoklch(0.51 0.2 332.79)
CMYKcmyk(0% 75.61% 7.93% 35.69%)
Android#ffa42897

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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