Skip to content
Vectorlight.net

#ba317d

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

HEX
#ba317d
RGB
186, 49, 125
HSL
326.72°, 58.3%, 46.08%
OKLCH
0.55 0.19 351.16
Names
—
Lists

Codes

FormatValue
HEX#ba317d
RGBrgb(186 49 125)
HSLhsl(326.72 58.3% 46.08%)
OKLCHoklch(0.55 0.19 351.16)
CMYKcmyk(0% 73.66% 32.8% 27.06%)
Android#ffba317d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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