Skip to content
Vectorlight.net

#af48dd

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

HEX
#af48dd
RGB
175, 72, 221
HSL
281.48°, 68.66%, 57.45%
OKLCH
0.6 0.22 313.46
Names
—
Lists

Codes

FormatValue
HEX#af48dd
RGBrgb(175 72 221)
HSLhsl(281.48 68.66% 57.45%)
OKLCHoklch(0.6 0.22 313.46)
CMYKcmyk(20.81% 67.42% 0% 13.33%)
Android#ffaf48dd

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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