Converts an RGB color object to a CSS-compatible string representation.
For fully opaque colors, this function returns a hex format by default as it's more compact.
For colors with alpha < 1 or when forceFullString is true, it returns the rgba() format.
Converts an RGB color object to a CSS-compatible string representation.
For fully opaque colors, this function returns a hex format by default as it's more compact. For colors with alpha < 1 or when forceFullString is true, it returns the rgba() format.