Skip to content
Vectorlight.net

#8a5bef

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

HEX
#8a5bef
RGB
138, 91, 239
HSL
259.05°, 82.22%, 64.71%
OKLCH
0.6 0.21 293.6
Names
—
Lists

Codes

FormatValue
HEX#8a5bef
RGBrgb(138 91 239)
HSLhsl(259.05 82.22% 64.71%)
OKLCHoklch(0.6 0.21 293.6)
CMYKcmyk(42.26% 61.92% 0% 6.27%)
Android#ff8a5bef

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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