Allow 3 digit hex colour codes

Updates the validation format for background and text colour to allow both 3 digit and 6 digit colour codes.