Skip to content
Vectorlight.net

#ba8aef

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

HEX
#ba8aef
RGB
186, 138, 239
HSL
268.51°, 75.94%, 73.92%
OKLCH
0.72 0.15 304.83
Names
—
Lists

Codes

FormatValue
HEX#ba8aef
RGBrgb(186 138 239)
HSLhsl(268.51 75.94% 73.92%)
OKLCHoklch(0.72 0.15 304.83)
CMYKcmyk(22.18% 42.26% 0% 6.27%)
Android#ffba8aef

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.96: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="#ba8aef"
Gradient stop
<stop stop-color="#ba8aef"/>
CSS variable + fill
:root { --c: #ba8aef; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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