Colored rectangle

The rectangle with the number changes color depending on the number and
the corners are rounded. The number is not in the center though