Skip to content
Vectorlight.net

#af87ff

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

HEX
#af87ff
RGB
175, 135, 255
HSL
260°, 100%, 76.47%
OKLCH
0.71 0.17 297.2
Names
—
Lists

Codes

FormatValue
HEX#af87ff
RGBrgb(175 135 255)
HSLhsl(260 100% 76.47%)
OKLCHoklch(0.71 0.17 297.2)
CMYKcmyk(31.37% 47.06% 0% 0%)
Android#ffaf87ff

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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