Filter Scoring - ranking results by specificity

A user can filter by color. A user selects red. How can algolia be setup to show the following priority:

Item 1: red
Item 2: red
Item 3: red, blue
Item 4: red, green
Item 5: red, orange, black
Item 6: red, white, yellow, orange

As more colors are added, the priority is lower.