Skip to content
Vectorlight.net

#ba97bd

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

HEX
#ba97bd
RGB
186, 151, 189
HSL
295.26°, 22.35%, 66.67%
OKLCH
0.72 0.07 323.69
Names
—
Lists

Codes

FormatValue
HEX#ba97bd
RGBrgb(186 151 189)
HSLhsl(295.26 22.35% 66.67%)
OKLCHoklch(0.72 0.07 323.69)
CMYKcmyk(1.59% 20.11% 0% 25.88%)
Android#ffba97bd

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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