#ba58cb
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 | #ba58cb | |
| RGB | rgb(186 88 203) | |
| HSL | hsl(291.13 52.51% 57.06%) | |
| OKLCH | oklch(0.62 0.19 321.52) | |
| CMYK | cmyk(8.37% 56.65% 0% 20.39%) | |
| Android | #ffba58cb |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
3.92:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.34:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000
Shades & tints
OKLCH lightness, mixed toward white then black.
Harmonies
Complementary
Analogous
Triadic
Color-blindness
Normal
Protanopia
Deuteranopia
Tritanopia
SVG snippets
fill
fill="#ba58cb"
Gradient stop
<stop stop-color="#ba58cb"/>
CSS variable + fill
:root { --c: #ba58cb; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #ba58cb; background-color: #ba58cb; bg-[#ba58cb]