English中文日本語한국어EspañolFrançaisDeutschPortuguêsРусский

RGB Color Codes

RGB color codes describe screen colors with red, green, and blue light channels.

How RGB values work

Each RGB channel is usually written as a number from 0 to 255. Low values add little light, while high values add more light. Combining the three channels creates the final screen color.

RGB in CSS

Modern CSS can use rgb(255 0 0), rgb(255, 0, 0), or rgb values with alpha transparency. RGB is especially useful when a color must be generated or adjusted by code.

RGB to Hex conversion

Each RGB channel can be converted to a two-character hexadecimal pair. The three pairs form the final Hex color code.

Related color tools

Use these tools to pick, convert, test, and export the color values described in this guide.

More color guides