Skip to content
Vectorlight.net

#af0c8f

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

HEX
#af0c8f
RGB
175, 12, 143
HSL
311.78°, 87.17%, 36.67%
OKLCH
0.51 0.22 339.07
Names
—
Lists

Codes

FormatValue
HEX#af0c8f
RGBrgb(175 12 143)
HSLhsl(311.78 87.17% 36.67%)
OKLCHoklch(0.51 0.22 339.07)
CMYKcmyk(0% 93.14% 18.29% 31.37%)
Android#ffaf0c8f

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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