#ba55fb
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 | #ba55fb | |
| RGB | rgb(186 85 251) | |
| HSL | hsl(276.51 95.4% 65.88%) | |
| OKLCH | oklch(0.65 0.24 309.14) | |
| CMYK | cmyk(25.9% 66.14% 0% 1.57%) | |
| Android | #ffba55fb |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
3.63:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.78: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="#ba55fb"
Gradient stop
<stop stop-color="#ba55fb"/>
CSS variable + fill
:root { --c: #ba55fb; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #ba55fb; background-color: #ba55fb; bg-[#ba55fb]