#ba96fb
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 | #ba96fb | |
| RGB | rgb(186 150 251) | |
| HSL | hsl(261.39 92.66% 78.63%) | |
| OKLCH | oklch(0.75 0.15 299.27) | |
| CMYK | cmyk(25.9% 40.24% 0% 1.57%) | |
| Android | #ffba96fb |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
2.37:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
8.84: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="#ba96fb"
Gradient stop
<stop stop-color="#ba96fb"/>
CSS variable + fill
:root { --c: #ba96fb; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #ba96fb; background-color: #ba96fb; bg-[#ba96fb]