Skip to content
Vectorlight.net

#ba6aef

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

HEX
#ba6aef
RGB
186, 106, 239
HSL
276.09°, 80.61%, 67.65%
OKLCH
0.67 0.2 309.82
Names
—
Lists

Codes

FormatValue
HEX#ba6aef
RGBrgb(186 106 239)
HSLhsl(276.09 80.61% 67.65%)
OKLCHoklch(0.67 0.2 309.82)
CMYKcmyk(22.18% 55.65% 0% 6.27%)
Android#ffba6aef

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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