HSB Color in Blockly rule

I had the same problem and solved it by asking if the last value of hsb is 0. maybe this helps:

image