Imgix APIsVideo APIFillFill Background Color

Fill Background Color

fill-color

Sets the color used to fill the border when fit=fill or fit=fillmax is active and fill=solid.

fill-color accepts a hex color value (with an optional # or 0x prefix) in the RGB, ARGB, RRGGBB or AARRGGBB form, or a CSS color name — 203040, f00, 0x203040 and rebeccapurple are all valid. The default is 000000 (black), which is also what a malformed value falls back to.

The 4- and 8-digit forms are accepted but their alpha is discarded: the bars always paint opaque, so 80FF0000 and 00FF0000 both render the same solid red as FF0000. Note that the alpha byte comes first in those forms, as it does everywhere in Imgix, so a CSS #RRGGBBAA value pasted here is read as a different color rather than a translucent one.

fill-color is applied when fill=solid (the default fill type). It is also used as a silent fallback for fill=image — if the image URL fails to fetch or is not a supported format, the border renders onto fill-color instead of erroring. It is ignored when fill=blur.