Funçao calcularColors isolada