Skip to content
Vectorlight.net

#af254e

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

HEX
#af254e
RGB
175, 37, 78
HSL
342.17°, 65.09%, 41.57%
OKLCH
0.5 0.17 9.26
Names
—
Lists

Codes

FormatValue
HEX#af254e
RGBrgb(175 37 78)
HSLhsl(342.17 65.09% 41.57%)
OKLCHoklch(0.5 0.17 9.26)
CMYKcmyk(0% 78.86% 55.43% 31.37%)
Android#ffaf254e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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