Skip to content
Vectorlight.net

#af507e

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

HEX
#af507e
RGB
175, 80, 126
HSL
330.95°, 37.25%, 50%
OKLCH
0.56 0.13 351.97
Names
—
Lists

Codes

FormatValue
HEX#af507e
RGBrgb(175 80 126)
HSLhsl(330.95 37.25% 50%)
OKLCHoklch(0.56 0.13 351.97)
CMYKcmyk(0% 54.29% 28% 31.37%)
Android#ffaf507e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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