5476 add color validator

See #5476