replace the hex by using red green blue