#ba22cc
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 | #ba22cc | |
| RGB | rgb(186 34 204) | |
| HSL | hsl(293.65 71.43% 46.67%) | |
| OKLCH | oklch(0.58 0.25 323.06) | |
| CMYK | cmyk(8.82% 83.33% 0% 20%) | |
| Android | #ffba22cc |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
5.01:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.18: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="#ba22cc"
Gradient stop
<stop stop-color="#ba22cc"/>
CSS variable + fill
:root { --c: #ba22cc; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #ba22cc; background-color: #ba22cc; bg-[#ba22cc]