摘要:Habitat heterogeneity shapes biological communities, a well-known process in terrestrial ecosystems but substantially unresolved within coral reef ecosystems. We investigated the extent to which coral richness predicts intra-family fish richness, while simultaneously integrating a striking aspect of reef ecosystems—coral hue. To do so, we quantified the coral richness, coral hue diversity, and species richness within 25 fish families in 74 global ecoregions. We then expanded this to an analysis of all reef fishes (4465 species). Considering coral bleaching as a natural experiment, we subsequently examined hue's contribution to fish communities. Coral species and hue diversity significantly predict each family's fish richness, with the highest correlations (> 80%) occurring in damselfish, butterflyfish, emperors and rabbitfish, lower (60–80%) in substrate-bound and mid-water taxa such as blennies, seahorses, and parrotfish, and lowest (40–60%) in sharks, morays, grunts and triggerfish. The observed trends persisted globally. Coral bleaching's homogenization of reef colouration revealed hue’s contribution to maintaining fish richness, abundance, and recruit survivorship. We propose that each additional coral species and associated hue provide added ecological opportunities (e.g. camouflage, background contrast for intraspecific display), facilitating the evolution and co-existence of diverse fish assemblages.