Skip to calculator
Color distance
instacalc
Color distance
Calc
Text
Graph
Present
Remix
Search
Ctrl K
Calc
Text
Graph
Present
Color distance
Remix
Color distance
R1
// Calculate the distance of a particular RGB value from black (0,0,0).
Calculate the distance of a particular RGB value from black (0,0,0).
+
R2
red = 100
+
R3
green = 100
+
R4
blue = 100
+
R5
dist = sqrt(red^2 + green^2 + blue^2) // distance from black
distance from black
+
R6
+
R7
+
R8
+
R9
+
R10
+
R11
+
+
row
enter
Insert
instacalc.com/22239
Calcs
Explore
Keypad
Search
More