Skip to content
Vectorlight.net

#ba24dc

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

HEX
#ba24dc
RGB
186, 36, 220
HSL
288.91°, 72.44%, 50.2%
OKLCH
0.59 0.26 318.87
Names
—
Lists

Codes

FormatValue
HEX#ba24dc
RGBrgb(186 36 220)
HSLhsl(288.91 72.44% 50.2%)
OKLCHoklch(0.59 0.26 318.87)
CMYKcmyk(15.45% 83.64% 0% 13.73%)
Android#ffba24dc

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
4.80:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.37:1
Fail AA normal text
Pass AA large text
On black #000000 · Best text #ffffff

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="#ba24dc"
Gradient stop
<stop stop-color="#ba24dc"/>
CSS variable + fill
:root { --c: #ba24dc; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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