Skip to content
Vectorlight.net

#ba8dec

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

HEX
#ba8dec
RGB
186, 141, 236
HSL
268.42°, 71.43%, 73.92%
OKLCH
0.72 0.14 304.94
Names
—
Lists

Codes

FormatValue
HEX#ba8dec
RGBrgb(186 141 236)
HSLhsl(268.42 71.43% 73.92%)
OKLCHoklch(0.72 0.14 304.94)
CMYKcmyk(21.19% 40.25% 0% 7.45%)
Android#ffba8dec

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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