Skip to content
Vectorlight.net

#af027d

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

HEX
#af027d
RGB
175, 2, 125
HSL
317.34°, 97.74%, 34.71%
OKLCH
0.5 0.21 345.81
Names
—
Lists

Codes

FormatValue
HEX#af027d
RGBrgb(175 2 125)
HSLhsl(317.34 97.74% 34.71%)
OKLCHoklch(0.5 0.21 345.81)
CMYKcmyk(0% 98.86% 28.57% 31.37%)
Android#ffaf027d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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