Skip to content
Vectorlight.net

#af398b

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

HEX
#af398b
RGB
175, 57, 139
HSL
318.31°, 50.86%, 45.49%
OKLCH
0.54 0.18 342.12
Names
—
Lists

Codes

FormatValue
HEX#af398b
RGBrgb(175 57 139)
HSLhsl(318.31 50.86% 45.49%)
OKLCHoklch(0.54 0.18 342.12)
CMYKcmyk(0% 67.43% 20.57% 31.37%)
Android#ffaf398b

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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