Skip to content
Vectorlight.net

#af2540

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

HEX
#af2540
RGB
175, 37, 64
HSL
348.26°, 65.09%, 41.57%
OKLCH
0.5 0.17 15.84
Names
—
Lists

Codes

FormatValue
HEX#af2540
RGBrgb(175 37 64)
HSLhsl(348.26 65.09% 41.57%)
OKLCHoklch(0.5 0.17 15.84)
CMYKcmyk(0% 78.86% 63.43% 31.37%)
Android#ffaf2540

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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