Adjusts rgba to be suitable as a standalone color.
It will typically be darker for light background, and lighter for dark background, ensuring contrast.
| rgba |
a background color |
| dark |
Whether to calculate standalone color for light or dark background |
| standalone_rgba |
return location for the standalone color |