OptionalalphaOptionalcollapseWhether or not to collapse colors to three- or four-digit hex when possible
OptionalcommasForce commas as a separator
OptionalcoordsCoordinate format to override the default
OptionalformatOutput format id. Defaults to the parsed format if available (and can serialize), or the color space default otherwise
OptionalinAdjust coordinates to fit in gamut first
OptionalprecisionSignificant digits
OptionalspaceColor space to convert to if the color is not natively supported
OptionalsupportsFunction used to test whether a serialization is supported, defaulting to CSS.supports.
If absent (e.g. in Node), the color's own serialization is returned without a fallback.
Alpha format