Skip to content
Vectorlight.net

#af228e

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

HEX
#af228e
RGB
175, 34, 142
HSL
314.04°, 67.46%, 40.98%
OKLCH
0.52 0.2 339.84
Names
—
Lists

Codes

FormatValue
HEX#af228e
RGBrgb(175 34 142)
HSLhsl(314.04 67.46% 40.98%)
OKLCHoklch(0.52 0.2 339.84)
CMYKcmyk(0% 80.57% 18.86% 31.37%)
Android#ffaf228e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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