Skip to content
Vectorlight.net

#afa2dc

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

HEX
#afa2dc
RGB
175, 162, 220
HSL
253.45°, 45.31%, 74.9%
OKLCH
0.74 0.08 294.56
Names
—
Lists

Codes

FormatValue
HEX#afa2dc
RGBrgb(175 162 220)
HSLhsl(253.45 45.31% 74.9%)
OKLCHoklch(0.74 0.08 294.56)
CMYKcmyk(20.45% 26.36% 0% 13.73%)
Android#ffafa2dc

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
2.32:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
9.02:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000

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="#afa2dc"
Gradient stop
<stop stop-color="#afa2dc"/>
CSS variable + fill
:root { --c: #afa2dc; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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