The two agree for every tile but solid. A solid tile is all background in the dialog, but the
file format paints solid with fgColor, so Excel stores the dialog's Background in
foreground and its Pattern Color in background. The swap is its own inverse: pass a stored
fill's slots to get the dialog's colors back.
A pattern fill's stored
foreground/backgroundfrom its colors as Excel's Format Cells dialog names them — Pattern Color (the marks) and Background Color (behind the marks).