Modify the color if it is not legible on black.

color:get_variation_legible_on_black(STRING $hex_color_code, $threshold=100)

color:get_variation_legible_on_black('#350e0e')
#=> "#ff3838"

#=== if color is already okay, it will not change
color:get_variation_legible_on_black('#f5d5d5')
#=> "#f5d5d5"

Copyright ©2013-2022 SunSed®. All rights reserved.