Skip to content
Vectorlight.net

#af187c

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

HEX
#af187c
RGB
175, 24, 124
HSL
320.26°, 75.88%, 39.02%
OKLCH
0.51 0.2 346.77
Names
—
Lists

Codes

FormatValue
HEX#af187c
RGBrgb(175 24 124)
HSLhsl(320.26 75.88% 39.02%)
OKLCHoklch(0.51 0.2 346.77)
CMYKcmyk(0% 86.29% 29.14% 31.37%)
Android#ffaf187c

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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