calculate distance between two color in hex or rgb format. rgb maxColorValue = 255.

color_distance(color_1, color_2)

Arguments

color_1

color 1 in hex or rgb format

color_2

color 2 in hex or rgb format

Value

a distance number