Skip to content
Vectorlight.net

#ba7cec

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

HEX
#ba7cec
RGB
186, 124, 236
HSL
273.21°, 74.67%, 70.59%
OKLCH
0.69 0.17 308.15
Names
—
Lists

Codes

FormatValue
HEX#ba7cec
RGBrgb(186 124 236)
HSLhsl(273.21 74.67% 70.59%)
OKLCHoklch(0.69 0.17 308.15)
CMYKcmyk(21.19% 47.46% 0% 7.45%)
Android#ffba7cec

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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