Hey everyone,

I'm interested in color hex codes used in HTML.

Is there a mathematical difference between hex codes?

Lets say I have a dark shade of blue : #0000FF and I want to apply a lighter shade of blue elsewhere on my web page : #0099FF.

Is there a calculable difference between the two?

What if I started with a dark shade of red : #FF0000 and I wanted to find a lighter variant of red that will match similarly to how the two blues matched above?

Is it possible to find a match mathematically by finding the difference between the two blues and then applying it to the red #FF0000?