Modify the color if it is not legible on white

color:get_variation_legible_on_white(STRING $hex_color_code, $threshold=150)

color:get_variation_legible_on_white("f5d5d5")
#=> "#ec5454"

#=== if color is already okay, it will not change
color:get_variation_legible_on_white('#000')
#=> "#000000"

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