Get either white or black (as HEX Color Code) depending on which has the highest contrast on the given color.
color:get_most_legible_overlay_color(STRING $hex_color_code)
color:get_most_legible_overlay_color('FFC65C')
#=> "#000000"
Copyright ©2013-2022 SunSed®. All rights reserved.