Skip to content
Vectorlight.net

#ba8be4

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

HEX
#ba8be4
RGB
186, 139, 228
HSL
271.69°, 62.24%, 71.96%
OKLCH
0.72 0.13 307.6
Names
—
Lists

Codes

FormatValue
HEX#ba8be4
RGBrgb(186 139 228)
HSLhsl(271.69 62.24% 71.96%)
OKLCHoklch(0.72 0.13 307.6)
CMYKcmyk(18.42% 39.04% 0% 10.59%)
Android#ffba8be4

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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