Skip to content
Vectorlight.net

#af397d

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

HEX
#af397d
RGB
175, 57, 125
HSL
325.42°, 50.86%, 45.49%
OKLCH
0.54 0.17 348.72
Names
—
Lists

Codes

FormatValue
HEX#af397d
RGBrgb(175 57 125)
HSLhsl(325.42 50.86% 45.49%)
OKLCHoklch(0.54 0.17 348.72)
CMYKcmyk(0% 67.43% 28.57% 31.37%)
Android#ffaf397d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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