Skip to content
Vectorlight.net

#ba02af

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

HEX
#ba02af
RGB
186, 2, 175
HSL
303.59°, 97.87%, 36.86%
OKLCH
0.55 0.25 331.61
Names
—
Lists

Codes

FormatValue
HEX#ba02af
RGBrgb(186 2 175)
HSLhsl(303.59 97.87% 36.86%)
OKLCHoklch(0.55 0.25 331.61)
CMYKcmyk(0% 98.92% 5.91% 27.06%)
Android#ffba02af

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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