Label Maker is an AE plugin that automatically adapts the color of layer labels. However, it is important to note that it currently does not work with custom label colors, and only supports the default ones. You can download and install the plugin through the provided link.