#ba58db
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 | #ba58db | |
| RGB | rgb(186 88 219) | |
| HSL | hsl(284.89 64.53% 60.2%) | |
| OKLCH | oklch(0.63 0.21 316.73) | |
| CMYK | cmyk(15.07% 59.82% 0% 14.12%) | |
| Android | #ffba58db |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
3.81:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.50: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="#ba58db"
Gradient stop
<stop stop-color="#ba58db"/>
CSS variable + fill
:root { --c: #ba58db; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #ba58db; background-color: #ba58db; bg-[#ba58db]