Skip to content
Vectorlight.net

#ba5fed

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

HEX
#ba5fed
RGB
186, 95, 237
HSL
278.45°, 79.78%, 65.1%
OKLCH
0.65 0.21 311.45
Names
—
Lists

Codes

FormatValue
HEX#ba5fed
RGBrgb(186 95 237)
HSLhsl(278.45 79.78% 65.1%)
OKLCHoklch(0.65 0.21 311.45)
CMYKcmyk(21.52% 59.92% 0% 7.06%)
Android#ffba5fed

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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