#ba178d
Codes, contrast, shades, harmonies and SVG snippets for this color.
- Codes
- Names & lists
- Contrast
- Shades & tints
- Harmonies
- Color-blindness
- SVG snippets
- CSS
- Related colors
Codes
| Format | Value | |
|---|---|---|
| HEX | #ba178d | |
| RGB | rgb(186 23 141) | |
| HSL | hsl(316.56 77.99% 40.98%) | |
| OKLCH | oklch(0.54 0.22 343.23) | |
| CMYK | cmyk(0% 87.63% 24.19% 27.06%) | |
| Android | #ffba178d |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
5.84:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
3.59:1
Fail AA normal text
Pass AA large text
On black #000000 · Best text #ffffff
Shades & tints
OKLCH lightness, mixed toward white then black.
Harmonies
Complementary
Analogous
Triadic
Color-blindness
Normal
Protanopia
Deuteranopia
Tritanopia
SVG snippets
fill
fill="#ba178d"
Gradient stop
<stop stop-color="#ba178d"/>
CSS variable + fill
:root { --c: #ba178d; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #ba178d; background-color: #ba178d; bg-[#ba178d]