Skip to content
Vectorlight.net

#ba4cdb

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

HEX
#ba4cdb
RGB
186, 76, 219
HSL
286.15°, 66.51%, 57.84%
OKLCH
0.62 0.22 317.51
Names
—
Lists

Codes

FormatValue
HEX#ba4cdb
RGBrgb(186 76 219)
HSLhsl(286.15 66.51% 57.84%)
OKLCHoklch(0.62 0.22 317.51)
CMYKcmyk(15.07% 65.3% 0% 14.12%)
Android#ffba4cdb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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