incorporate new variables for base and gray colors