Skip to content
Vectorlight.net

#ba8beb

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

HEX
#ba8beb
RGB
186, 139, 235
HSL
269.38°, 70.59%, 73.33%
OKLCH
0.72 0.14 305.64
Names
—
Lists

Codes

FormatValue
HEX#ba8beb
RGBrgb(186 139 235)
HSLhsl(269.38 70.59% 73.33%)
OKLCHoklch(0.72 0.14 305.64)
CMYKcmyk(20.85% 40.85% 0% 7.84%)
Android#ffba8beb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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