You can place multiple lamp elements (one for each color/state) in the same location on your visualization and control the ‘Invisibility’ property of each based on the Alarm Value.
Example:
GreenLampInvisible := NOT ((AlarmValue >= 10) AND (AlarmValue < 20));
YellowLampInvisible := NOT ((AlarmValue >= 20) AND (AlarmValue < 25));
RedLampInvisible := NOT (AlarmValue >= 25);