Get difference in level between two colors

I’m going to cast my own bathroom countertop in concrete. We are trying to match the floor tiles in black level, so I did three samples, each with a double amount of pigment than the last. Of course it didn’t match.

The big big one is the target. You can use white pigment if you need to make it more less dark.

enter image description here

Of course a picture will never have the exact same shade as reality, but the difference in black level should be pretty accurate (since the 3 samples are from the same picture). So what I did was to use Gaussian blur on each color and this is what I got:

enter image description here

I would like to somehow get the black level of each sample, and calculate an average. Also, the difference between the tile and the lightest sample. I can use that to get the amount of pigment.


A problem you are facing is that you have other variables, mainly humidity and illumination.

In your shoots, there are some zones that look similar but as the dark color is to the center I assume they are still wet.

The only way I can think of is to continue doing the tests.

The approach of doubling the sample is good for the start, but only for a first macro step, because you are doing an exponential increase.

On a second phase, you probably need to do a “half” linear approach.

Imagine that the sample is between (B) and (C), now you make the proper measurements and divide the diference in half (d) and then half again (e)

enter image description here

The approach you are doing in Photoshop is interesting but In my opinion a bit usless, because, at the end it is a perceptive problem.

Take a look at this phenomenon:

Source : Link , Question Author : Anders , Answer Author : Rafael

Leave a Comment