Skip to content
Vectorlight.net

#af397e

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

HEX
#af397e
RGB
175, 57, 126
HSL
324.92°, 50.86%, 45.49%
OKLCH
0.54 0.17 348.23
Names
—
Lists

Codes

FormatValue
HEX#af397e
RGBrgb(175 57 126)
HSLhsl(324.92 50.86% 45.49%)
OKLCHoklch(0.54 0.17 348.23)
CMYKcmyk(0% 67.43% 28% 31.37%)
Android#ffaf397e

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="#af397e"
Gradient stop
<stop stop-color="#af397e"/>
CSS variable + fill
:root { --c: #af397e; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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