Skip to content
Vectorlight.net

#ba45ff

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

HEX
#ba45ff
RGB
186, 69, 255
HSL
277.74°, 100%, 63.53%
OKLCH
0.64 0.26 309.45
Names
—
Lists

Codes

FormatValue
HEX#ba45ff
RGBrgb(186 69 255)
HSLhsl(277.74 100% 63.53%)
OKLCHoklch(0.64 0.26 309.45)
CMYKcmyk(27.06% 72.94% 0% 0%)
Android#ffba45ff

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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