#ba258f
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 | #ba258f | |
| RGB | rgb(186 37 143) | |
| HSL | hsl(317.32 66.82% 43.73%) | |
| OKLCH | oklch(0.54 0.21 342.9) | |
| CMYK | cmyk(0% 80.11% 23.12% 27.06%) | |
| Android | #ffba258f |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
5.60:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
3.74: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="#ba258f"
Gradient stop
<stop stop-color="#ba258f"/>
CSS variable + fill
:root { --c: #ba258f; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #ba258f; background-color: #ba258f; bg-[#ba258f]