Skip to content
Vectorlight.net

#ba27cd

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

HEX
#ba27cd
RGB
186, 39, 205
HSL
293.13°, 68.03%, 47.84%
OKLCH
0.58 0.25 322.7
Names
—
Lists

Codes

FormatValue
HEX#ba27cd
RGBrgb(186 39 205)
HSLhsl(293.13 68.03% 47.84%)
OKLCHoklch(0.58 0.25 322.7)
CMYKcmyk(9.27% 80.98% 0% 19.61%)
Android#ffba27cd

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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