Fixed incorrect pen shade and offset

This fixes the incorrect pen color lightness. Tested with #19956128