Skip to content
Vectorlight.net

#8a4fac

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

HEX
#8a4fac
RGB
138, 79, 172
HSL
278.06°, 37.05%, 49.22%
OKLCH
0.54 0.15 311.64
Names
—
Lists

Codes

FormatValue
HEX#8a4fac
RGBrgb(138 79 172)
HSLhsl(278.06 37.05% 49.22%)
OKLCHoklch(0.54 0.15 311.64)
CMYKcmyk(19.77% 54.07% 0% 32.55%)
Android#ff8a4fac

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #8a4fac;
background-color: #8a4fac;
bg-[#8a4fac]