Skip to content
Vectorlight.net

#af007d

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

HEX
#af007d
RGB
175, 0, 125
HSL
317.14°, 100%, 34.31%
OKLCH
0.5 0.21 345.77
Names
—
Lists

Codes

FormatValue
HEX#af007d
RGBrgb(175 0 125)
HSLhsl(317.14 100% 34.31%)
OKLCHoklch(0.5 0.21 345.77)
CMYKcmyk(0% 100% 28.57% 31.37%)
Android#ffaf007d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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