Skip to content
Vectorlight.net

#ba4bed

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

HEX
#ba4bed
RGB
186, 75, 237
HSL
281.11°, 81.82%, 61.18%
OKLCH
0.63 0.24 313.04
Names
—
Lists

Codes

FormatValue
HEX#ba4bed
RGBrgb(186 75 237)
HSLhsl(281.11 81.82% 61.18%)
OKLCHoklch(0.63 0.24 313.04)
CMYKcmyk(21.52% 68.35% 0% 7.06%)
Android#ffba4bed

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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