How to set Color Tolerance when using getColorBoundsRect?

Hi guys, i am trying to detect where the color yellow is inside a BitmapData. It works with this, but…

rect = bmpData.getColorBoundsRect( 0xFFFFFFFF, 0xFFFFFF00 );

The problem is that it only finds the exact pixels including the exact color 0xFFFFFF00 (yellow).
Is there a way to make it have some kind of tolerance?
So basically it will be able to find even a yellow that is a lil bit darker or ligther?