Is it possible to have a xlookup use the colours of the cells father than data?

so look up in cell A3 the formula would be, lookup A1, if it is pink, then use the colour of the cell in A2.