Accounts for max color value