Skip to content

Challenge Use RGB values To Color Elements

Quincy Larson edited this page Aug 20, 2016 · 1 revision

Challenge Use RGB values to Color Elements

Another way you can represent colors in CSS is by using rgb values.

RGB values look like this: rgb(0, 0, 0) for black and rgb(255, 255, 255) for white.

Instead of using six hexadecimal digits like you do with hex code, with rbg you specify the brightness of each color with a number between 0 and 255.

background-color: rgb(0,0,0);
Clone this wiki locally