#ba73fe
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 | #ba73fe | |
| RGB | rgb(186 115 254) | |
| HSL | hsl(270.65 98.58% 72.35%) | |
| OKLCH | oklch(0.69 0.2 305.28) | |
| CMYK | cmyk(26.77% 54.72% 0% 0.39%) | |
| Android | #ffba73fe |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
3.01:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
6.97: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="#ba73fe"
Gradient stop
<stop stop-color="#ba73fe"/>
CSS variable + fill
:root { --c: #ba73fe; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #ba73fe; background-color: #ba73fe; bg-[#ba73fe]